Opens the SurveyStudio Shiny application, a visual interface for the complete surveyframe workflow. The studio includes screens to build a survey draft, open an existing instrument, preview the survey, upload responses, review data quality, inspect reliability, plan analyses, and export outputs.
Usage
launch_studio(
instrument = NULL,
responses = NULL,
respondent_id = NULL,
submitted_at = NULL,
meta_cols = NULL,
strict = TRUE,
screen = c("auto", "build", "preview", "data", "quality", "analysis", "dashboard"),
port = NULL,
host = "127.0.0.1",
launch.browser = interactive()
)Arguments
- instrument
An
sframeobject or NULL.- responses
A data.frame, tibble, CSV file path, or NULL.
- respondent_id
Character or NULL. Response ID column when
responsesis a CSV path.- submitted_at
Character or NULL. Submission time column when
responsesis a CSV path.- meta_cols
Character vector or NULL. Metadata columns when
responsesis a CSV path.- strict
Logical. Passed to
read_responses()whenresponsesis a CSV path.- screen
Initial studio screen. One of
"auto","build","preview","data","quality","analysis", or"dashboard".- port
TCP port for the Shiny server.
- host
Host address passed to
shiny::runApp().- launch.browser
Whether to open the browser automatically.
Examples
if (FALSE) { # \dontrun{
launch_studio()
demo <- sframe_demo_data()
launch_studio(instrument = demo$instrument, launch.browser = FALSE)
launch_studio(
instrument = demo$instrument,
responses = demo$responses,
respondent_id = "respondent_id",
submitted_at = "submitted_at"
)
} # }