Backup a study
formr_backup_study.RdBackup a study by downloading all surveys, results, item displays, run shuffle, user overview and user details. This function will save the data in a folder named after the study.
Usage
formr_backup_study(
study_name,
save_path = NULL,
host = formr_last_host(),
overwrite = FALSE
)Arguments
- study_name
case-sensitive name of a study your account owns
- save_path
directory to write the backup into. Defaults to a sub-folder named after the study inside
formr_default_dir(); set that (or passsave_path) since formr never writes to the working directory by default.- host
defaults to
formr_last_host(), which defaults to https://rforms.org- overwrite
should existing files be overwritten?
Value
Invisibly NULL; called for its side effect of downloading a whole study
(run structure, surveys, files and results) into save_path.
Examples
if (FALSE) { # \dontrun{
# Not run: needs a live formr server and an authenticated session.
formr_default_dir(tempdir())
formr_backup_study(study_name = 'training_diary' )
} # }