r-exams

Fill initial student IDs with zeros in R/exams exams2nops()

你说的曾经没有我的故事 提交于 2021-01-27 16:05:31
问题 When using the exams package to produce PDF files for NOPS exams I want to edit the number of digits that are available to my students ( reglength ). I am aware that the package only admits a minimum of 7 digits. However, our students only have 5 digits in their ID number. As so I would to know if it is possible to edit the template via PDF manipulation (I tried with the staplr::get_fields() function, but it does not work) or any other way... I simply want to add 0 to the two first digits (i

Fill initial student IDs with zeros in R/exams exams2nops()

梦想与她 提交于 2021-01-27 15:51:57
问题 When using the exams package to produce PDF files for NOPS exams I want to edit the number of digits that are available to my students ( reglength ). I am aware that the package only admits a minimum of 7 digits. However, our students only have 5 digits in their ID number. As so I would to know if it is possible to edit the template via PDF manipulation (I tried with the staplr::get_fields() function, but it does not work) or any other way... I simply want to add 0 to the two first digits (i

Sharing a random CSV data set across exercises with exams2moodle()

房东的猫 提交于 2020-12-12 06:47:30
问题 I want to create a Moodle quiz with 300 random replications from 6 exercise templates using exams2moodle() from R/exams. The 6 exercise templates depend on a data set that is randomly generated as a CSV file from a larger data base in the first exercise. The command exams2pdf() does just what I want but I want to reproduce what exams2pdf() does with the exams2moodle() command. However, this just generates a quiz with 300 questions of type 1, 300 of type 2, ..., and 300 of type 6. I don't know

Sharing a random CSV data set across exercises with exams2moodle()

限于喜欢 提交于 2020-12-12 06:46:50
问题 I want to create a Moodle quiz with 300 random replications from 6 exercise templates using exams2moodle() from R/exams. The 6 exercise templates depend on a data set that is randomly generated as a CSV file from a larger data base in the first exercise. The command exams2pdf() does just what I want but I want to reproduce what exams2pdf() does with the exams2moodle() command. However, this just generates a quiz with 300 questions of type 1, 300 of type 2, ..., and 300 of type 6. I don't know

How to use a LaTeX package with R/exams?

无人久伴 提交于 2020-11-25 03:35:25
问题 I am using exams2moodle() to create exam quizzes. I would like to use some math symbols which require the LaTeX package amssymb . How should I proceed? 回答1: TL;DR: amssymb LaTeX symbols are supported by MathJax which is the default renderer in a standard Moodle installation. So these symbols should work out of the box when using exams2moodle(..., converter = "pandoc-mathjax") which is the default sinc R/exams 2.3.3 (released in July 2019). Details: As already pointed out by the answer of

How to use a LaTeX package with R/exams?

こ雲淡風輕ζ 提交于 2020-11-25 03:31:52
问题 I am using exams2moodle() to create exam quizzes. I would like to use some math symbols which require the LaTeX package amssymb . How should I proceed? 回答1: TL;DR: amssymb LaTeX symbols are supported by MathJax which is the default renderer in a standard Moodle installation. So these symbols should work out of the box when using exams2moodle(..., converter = "pandoc-mathjax") which is the default sinc R/exams 2.3.3 (released in July 2019). Details: As already pointed out by the answer of