View source: R/ss_write_sheet.R
ss_write_sheet_columns | R Documentation |
Write the initial columns for the a sheet
ss_write_sheet_columns(sheet_name, data = data.frame(PK = character()))
sheet_name |
A character vector |
data |
A data frame of columns to be added |
The Smartsheet API 2.0 uses two calls for creating a sheet with data. The first is a call to create a sheet and populate the columns (analogous to ss_write_sheet_columns). The second is to add rows (analogous to ss_add_rows). ss_write_sheet accomplishes both of these steps.
A ss_createsheet_resp
object
## Not run:
temp_sheet_name = paste0("smartsheetr-example-",random_sheet_name())
ss_id = ss_sheetid(ss_write_sheet_columns(temp_sheet_name, data=mtcars))
ss_read_sheet(ss_id) # No rows. Use ss_write_sheet() to write the full data frame
# clean up
ss_delete_sheet(ss_id)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.