if (interactive()) {
# Create a survey with the "question_types" template in the "my_survey" directory
sd_create_survey(template = "question_types", path = "my_survey")
# Create a survey using the default template in the "my_survey" directory
sd_create_survey(path = "my_survey")
# Create a survey with default template in current directory
sd_create_survey("default")
# Create a survey without asking for confirmation
sd_create_survey(template = "default", path = "my_survey", ask = FALSE)
}
Run the code above in your browser using DataLab