View source: R/launch_studio.R
| launch_studio | R Documentation |
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.
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()
)
instrument |
An |
responses |
A data.frame, tibble, CSV file path, or NULL. |
respondent_id |
Character or NULL. Response ID column when |
submitted_at |
Character or NULL. Submission time column when
|
meta_cols |
Character vector or NULL. Metadata columns when |
strict |
Logical. Passed to |
screen |
Initial studio screen. One of |
port |
TCP port for the Shiny server. |
host |
Host address passed to |
launch.browser |
Whether to open the browser automatically. |
Called for its side effect.
launch_builder(), launch_dashboard(), read_sframe(),
read_responses()
## Not run:
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"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.