Create data.frame for optional instruction and descriptions compatible with shiny.survey.
create_desc_source.Rd
Create data.frame for optional instruction and descriptions compatible with shiny.survey.
Usage
create_desc_source(
method = "df",
gsheet_id = NULL,
gsheet_name = NULL,
gsheet_sheetname = "Descriptions"
)
Arguments
- method
Which method to use. One of 'df' (default) and 'gsheet'.
- gsheet_id
id if you want to append the sheet to existing googlesheet
- gsheet_name
optional name for your googlesheet. Used only if
method == 'gsheet'
- gsheet_sheetname
name for the spreadsheet name
Details
Function to help initialize source data.frame to generate optional instructions and descriptions for quetzio. It should contain specific columns, which are created here alongside one placeholder input to help populating next ones.
To use 'gsheet' method, the 'googlesheets4' package needs to be installed.
You can create the source 'data.frame' yourself, keeping only the columns that are universally mandatory and specific to used types, though it is recommended to keep all columns that are created during initialization - the column classes should be kept.
When using 'googlesheet' as a source, all columns should be kept alongside their order to ensure correct import.