if (interactive()) {
library(surveydown)
# Use sd_close() in survey.qmd on the last page:
# --- end
#
# Thank you for completing the survey!
#
# `r sd_close(label_close = "Exit Survey", show_previous = TRUE)`
# Find a working directory and start from a template:
sd_create_survey(template = "default")
# This creates survey.qmd and app.R - launch the survey using app.R
}
Run the code above in your browser using DataLab