Skip to contents

Loads a survey definition without simplifying its JSON structure, so nested survey elements, flow nodes and logic objects are preserved as R lists.

Usage

read_qsf(source)

Arguments

source

One of:

  • a path to a .qsf file;

  • a Qualtrics URL containing a survey id (SV_...) – fetched via fetch_qsf() (needs QUALTRICS_API_KEY / QUALTRICS_BASE_URL);

  • a bare survey id SV_... – also fetched via fetch_qsf().

Value

A list of class qsf_raw with components SurveyEntry and SurveyElements.

Examples

qsf_path <- system.file("extdata", "demo_travel_survey.qsf",
                         package = "surveyBurden")
qsf <- read_qsf(qsf_path)
class(qsf)
#> [1] "qsf_raw"
names(qsf)
#> [1] "SurveyEntry"    "SurveyElements"