【问题标题】:Possible meta-informations in R/examsR/exams 中可能的元信息
【发布时间】:2022-10-17 20:22:49
【问题描述】:

我发现了非常有用的 R/exams 包,以及它非常完整的文档。

除非我弄错了,否则我没有找到提供可包含在 Rmd 问题末尾的元信息的详尽列表的地方。我对 moodle 导出上下文中的元信息特别感兴趣。例如,我知道可以定义一个部分或子部分,或者请求上传文档。但是所有其他的可能性是什么?

非常感谢!

【问题讨论】:

    标签: moodle r-exams


    【解决方案1】:
    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 设置numwidthstringwidth 参数。请参阅fourfold2 练习模板以获取工作示例。

    【讨论】:

    • 非常感谢您的快速回答,这真的很有用。我也在寻找通过 exextra 命令可用的所有选项。例如,我通过这个例子了解到了请求上传文档的可能性:r-exams.org/assets/posts/2017-08-14-essayreg//essayreg.Rmd 还有其他有用的提示吗?我承认这可能是一个特定于 Moodle 的问题,而不是 R/exams 包。但是,我认为将所有有用的选项集中在一个地方对许多人来说都是非常有用的。非常感谢您的回答!
    • 我不确定“所有选项”是什么意思:R/exams 的exams2moodle() 都支持还是 Moodle XML 都支持?后者记录在docs.moodle.org/400/en/Questions 中。但并非所有这些细节都得到 R/exams 的支持:我们更愿意专注于提供涵盖最重要选项的简单标准化词汇表。话虽如此,我们已经实现了一些特定于 Moodle 的细节,特别是针对 essayregfourfold2。关于这两点,我已经完善了我的答案。如果您还有其他问题,请告诉我。
    【解决方案2】:

    您可以在?read_metainfodocumentationread_exercise 中查看列表:

    read_metainfo 返回一个包含以下元素的列表

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-12-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多