if (interactive()) {
library(surveydown)
# Basic usage with both buttons
sd_nav()
# First page - hide Previous button
sd_nav(show_previous = FALSE)
# Last page - hide Next button
sd_nav(show_next = FALSE)
# Hide both navigation buttons
sd_nav(show_previous = FALSE, show_next = FALSE)
# Custom labels
sd_nav(
label_previous = "Go Back",
label_next = "Continue"
)
# Specify next page explicitly
sd_nav(page_next = "demographics")
}
Run the code above in your browser using DataLab