View source: R/create_source.R
create_desc_source | R Documentation |
Create data.frame for optional instruction and descriptions compatible with shiny.survey.
create_desc_source( method = "df", gsheet_id = NULL, gsheet_name = NULL, gsheet_sheetname = "Descriptions" )
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 |
gsheet_sheetname |
name for the spreadsheet name |
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.
Depends on specified method:
df
: data.frame object
gsheet
: ID of the created googlesheet
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.