【发布时间】:2022-10-17 20:22:49
【问题描述】:
我发现了非常有用的 R/exams 包,以及它非常完整的文档。
除非我弄错了,否则我没有找到提供可包含在 Rmd 问题末尾的元信息的详尽列表的地方。我对 moodle 导出上下文中的元信息特别感兴趣。例如,我知道可以定义一个部分或子部分,或者请求上传文档。但是所有其他的可能性是什么?
非常感谢!
【问题讨论】:
我发现了非常有用的 R/exams 包,以及它非常完整的文档。
除非我弄错了,否则我没有找到提供可包含在 Rmd 问题末尾的元信息的详尽列表的地方。我对 moodle 导出上下文中的元信息特别感兴趣。例如,我知道可以定义一个部分或子部分,或者请求上传文档。但是所有其他的可能性是什么?
非常感谢!
【问题讨论】:
| Tag | Description |
|---|---|
extype |
Specification of the type of exercise (required): num for questions with a numeric answer, mchoice for questions with multiple-choice answers, schoice for questions with single-choice answers (i.e., multiple-choice with exactly one correct solution), string for questions with a text answer, or cloze (i.e., combinations of the above). |
exname |
Short name/description (to be used for printing within R). |
extitle |
Pretty longer title (for Moodle). |
exsection |
Section of the exercise (for Moodle, with slashes for subsections as in a URL). |
exversion |
Version of the exercise. |
exsolution |
Correct solution (required). It must contain a numeric solution for num, a string of zeros/ones for mchoice/schoice, or a character string of string. For cloze a combination of these can be specified, e.g., exsolution: 1.23|001|glm. |
extol |
Tolerance for num solutions or a vector of tolerances (expanded if necessary) for cloze solutions. If unspecified the tolerance is 0. |
exclozetype |
List of types for the elements of a cloze exercise, e.g., exclozetype: num|schoice|string for the example above. |
exstringtype |
Type(s) of answer format for string exercises. The default is string but can also be essay (text editor) and/or file (upload menu). |
expoints |
Points for (fully) correct solution. Default is 1. |
exshuffle |
Logical or numeric indicating if/how to shuffle schoice/mchoice answers. |
exmaxchars |
Maximum number of characters in string answers (for QTI). |
exextra[] |
Additional metainformation to be read and stored, e.g., for new custom interfaces. The default storage type is character, e.g., exextra[myinfo]: 1.23 yields a metainformation element myinfo of "1.23". The type can also be numeric or logical, e.g., exextra[myinfo,logical]: FALSE|FALSE|TRUE. |
笔记:
vignette("exams2", package = "exams") 的表 2 所示(也发表在统计软件杂志)。我计划在 2.4-0 版本发布到 CRAN 时写一篇关于它的博客文章。exextra 中,您可以包含任何您希望的自定义信息,例如,用于存储自定义exams2xyz() 界面或评估结果所需的元信息。exams2moodle() 中,我们支持几个特定于Moodle 的exextra 选项,即“论文”类型问题的一些详细格式。所有支持的选项都可以在essayreg 练习模板中找到。exextra 选项从?exams2moodle 设置numwidth 和stringwidth 参数。请参阅fourfold2 练习模板以获取工作示例。
【讨论】:
exams2moodle() 都支持还是 Moodle XML 都支持?后者记录在docs.moodle.org/400/en/Questions 中。但并非所有这些细节都得到 R/exams 的支持:我们更愿意专注于提供涵盖最重要选项的简单标准化词汇表。话虽如此,我们已经实现了一些特定于 Moodle 的细节,特别是针对 essayreg 和 fourfold2。关于这两点,我已经完善了我的答案。如果您还有其他问题,请告诉我。
您可以在?read_metainfo 或documentation、read_exercise 中查看列表:
read_metainfo 返回一个包含以下元素的列表
【讨论】: