formr_upload_items: Upload new item table

View source: R/connect_to_formr.R

formr_upload_itemsR Documentation

Upload new item table

Description

To automatically create surveys using formr, you can upload survey item tables from R. Only file uploads are available. The file name determines the survey name. Updating existing surveys is not implemented and not recommended (because of the sanity checks we require to prevent data deletion).

Usage

formr_upload_items(survey_file_path, host = "https://formr.org")

Arguments

survey_file_path

the path to an item table in csv/json/xlsx etc.

host

defaults to https://formr.org

Examples

## Not run: 
formr_connect(email = 'you@example.net', password = 'zebrafinch' )
items <- system.file('extdata/gods_example_items.json', package = 'formr', 
mustWork = TRUE)
formr_upload_items(items)

## End(Not run)

rubenarslan/formr documentation built on Feb. 6, 2024, 1:18 a.m.