【问题标题】:Slidify Quiz Answer is of Character ClassSlidify 测验答案属于字符类
【发布时间】:2014-06-19 10:31:28
【问题描述】:

我正在使用由 Ramnath Vaidyanathan 编写的包 Slidify。 我正在使用小部件 [quiz] 创建我的第一个 quiz

--- &multitext  

    1. Create a vector x of the length three, which must consist of the following values 2 , 3, and 7.

*** .hint 
Use the command c()

*** .explanation
1. <span class="answer">x<-c(2,3,7)</span>

这一切都很好,但是在文本输入区域中,如果您输入 x

【问题讨论】:

    标签: r slidify


    【解决方案1】:

    目前,此小部件仅设置为仅接受数字答案。启用字符输入很容易,但我相信它是不可靠的。例如,用户可以按字符键入不同的答案,它们都是正确的。

    x <- c(2,  3, 7)
    x<-c(2,3,7)
    x<-c(2,3,  7)
    

    【讨论】:

    • 是的,你是对的,但这对我很有帮助。因为我正在创建的测验有例如问题,您只需输入函数的名称,如lmplotsummary。如何启用字符输入?非常感谢您!
    • 这需要更改测验底层的 javascript 库。特别是these lines。我会认为最好的方法是什么。
    • 知道如何修改这些行,使其对字符友好。
    猜你喜欢
    • 1970-01-01
    • 2012-12-02
    • 2020-04-06
    • 1970-01-01
    • 1970-01-01
    • 2020-01-06
    • 1970-01-01
    • 1970-01-01
    • 2015-09-06
    相关资源
    最近更新 更多