powered by
Takes a file path to a Markua formatted quiz and runs the steps to convert it to a Google Form Request and sends It to be a Google form quiz.
ottr_quiz_to_google( quiz_path = NULL, course_id = NULL, quiz_title = NULL, topic_id = NULL, coursework_title = NULL, form_id = NULL, due_date = NULL, make_new_quiz = FALSE, copy_from_template_quiz = TRUE, new_name = NULL, assignment_description = "", quiz_description = "", output_path = NULL, quiet = FALSE )
file path to a markdown Markua quiz
An id for the course where this is to be published and linked.
The title for the quiz. If not supplied, it will attempt to be grabbed from the Markua doc
topic ID that the quiz should be added under.
the title for the coursework to be created
form id where this quiz is to be published. Alternatively, if you want a new quiz to be made, you should set make_new_quiz = TRUE and leave this NULL.
A due date for this quiz, in year-month-day format
This can only be used if form_id is not specified. This will make a new quiz
TRUE or FALSE the form supplied should be copied over and used as a template.
To be passed to `copy_form` if `copy_from_template_quiz` is TRUE. What the new file name should be called
The description that will be given for the assignment
The description that will be given for the quiz
Optional file path to save the question formatted data to
TRUE/FALSE you'd like a progress message?
if (FALSE) { # Using quiz example quiz_path <- markdown_quiz_path() ottr_quiz_to_google( markdown_quiz_path(), course_id = "606463350924", make_new_quiz = TRUE, due_date = "2025-12-1" ) }
Run the code above in your browser using DataLab