a one-row dribble, which is how googledrive represents Drive files
an instance of googlesheets4_spreadsheet, which is what gs4_get()
returns
Processed through as_sheets_id().
sheet: One or more new sheet names. If unspecified, one new sheet is added and Sheets autogenerates a name of the form "SheetN".
...: Optional parameters to specify additional properties, common to all of the new sheet(s). Not relevant to most users. Specify fields of the c("list("SheetProperties")", " schema")
in name = value form.
.before, .after: Optional specification of where to put the new sheet(s). Specify, at most, one of .before and .after. Refer to an existing sheet by name (via a string) or by position (via a number). If unspecified, Sheets puts the new sheet(s) at the end.
Returns
The input ss, as an instance of sheets_id
Examples
ss <- gs4_create("add-sheets-to-me")# the only required argument is the target spreadsheetss %>% sheet_add()# but you CAN specify sheet name and/or positionss %>% sheet_add("apple", .after =1)ss %>% sheet_add("banana", .after ="apple")# add multiple sheets at oncess %>% sheet_add(c("coconut","dragonfruit"))# keeners can even specify additional sheet propertiesss %>% sheet_add( sheet ="eggplant", .before =1, gridProperties = list( rowCount =3, columnCount =6, frozenRowCount =1))# get an overview of the sheetssheet_properties(ss)# clean upgs4_find("add-sheets-to-me")%>% googledrive::drive_trash()
See Also
Makes a batch of AddSheetRequests (one per sheet):