powered by
Create a multiple choice question
create_multiple_choice_question( form_id = NULL, commit_to_form = TRUE, required = FALSE, question = NULL, choice_vector = NULL, shuffle_opt = FALSE, correct_answer = NULL, google_forms_request = NULL, point_value = 1, quiet = FALSE, location = 0 )
The id of the google form to be updated
Whether or not the request should be committed. If need to build the request further, you will want to say FALSE. Default is TRUE
TRUE or FALSE is this a required question? Default is not required.
a string that is what the question should say
a character vector of the choices that should be given for this question
TRUE or FALSE options should be shuffled? default is FALSE
The index that corresponds to the correct answer in the `choice_vector` supplied
A google forms request object. If not supplied, it will be created new.
An integer representing how many points
TRUE/FALSE you'd like a progress message?
Where should the new question be added
if (FALSE) { create_multiple_choice_question( form_id = "12345", question = "What answer do you want?", choice_vector = c("A", "B", "C", "D"), correct_answer = 3, shuffle_opt = TRUE ) }
Run the code above in your browser using DataLab