if (interactive()) {
library(surveydown)
# Use sd_next() in survey.qmd to create navigation:
# --- welcome
#
# Welcome to the survey!
#
# `r sd_next(next_page = "page2", label = "Continue")`
# 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