Canvas导入测验描述缺失及测验分类调整问题咨询
解决exams2canvas导入Canvas的两个问题
一、测验描述导入后不显示的问题
你当前代码里用的adescription参数,对应的是Canvas中**作业(Assignment)**的描述,而非测验(Quiz)本身的描述。XML里的描述如果是对应测验的,需要改用description参数指定:
exams2canvas(c("swisscapital.Rmd"), stitle = c("Section 1", "Section 2"), description = "This short quiz is for us (the lecturers) to get a sense of where the maths skills of the cohort are at.", # 不需要分节描述的话可以删除sdescription参数 name = "Preliminary Maths Skills Assessment", converter = "pandoc-mathml")
调整后重新生成XML导入,检查<quiz>标签下的<description>字段是否已包含目标内容,就能解决输入框为空的问题。
二、将测验归类到“Practice quizzes”
exams2canvas支持通过canvas_options参数指定测验类型,直接归类到Practice quizzes,修改代码如下:
exams2canvas(c("swisscapital.Rmd"), stitle = c("Section 1", "Section 2"), description = "This short quiz is for us (the lecturers) to get a sense of where the maths skills of the cohort are at.", name = "Preliminary Maths Skills Assessment", converter = "pandoc-mathml", canvas_options = list(quiz_type = "practice_quiz"))
该参数会修改生成XML中的测验类型字段,导入Canvas后自动归到Practice quizzes分类下。
内容的提问来源于stack exchange,提问作者learnjulia
相关产品推荐
相关产品推荐

