我正在使用由Ramnath编写的包Slidify。我使用小部件测试创建了我的第一个测试。
--- &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<-c(2,3,7)作为回答,则会得到不正确的图标。它只适用于数字类吗?是否可以将字符类实现为小测验?
发布于 2014-06-20 17:47:09
目前,这个小部件只设置为只接受数字答案。启用字符输入很容易,但我相信这是不可靠的。例如,用户可以键入不同的答案,就字符而言,它们都是正确的。
x <- c(2, 3, 7)
x<-c(2,3,7)
x<-c(2,3, 7)https://stackoverflow.com/questions/24304439
复制相似问题