View source: R/connect_to_formr.R
formr_upload_items | R Documentation |
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).
formr_upload_items(survey_file_path, host = formr_last_host())
survey_file_path |
the path to an item table in csv/json/xlsx etc. |
host |
defaults to |
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.