Public fields
spreadsheet_id
The Google Sheets spreadsheet ID
title
The title of the spreadsheet
sheets
A tibble of sheet names and IDs
Methods
spreadsheet$new()
Create or open a spreadsheet
Usage
spreadsheet$new(id = NULL, title = "Untitled Spreadsheet", set_active = TRUE)
Arguments
id
Spreadsheet ID, URL, or NULL to create new
title
Title for new spreadsheet (only used if id is NULL)
set_active
Whether to make this the active spreadsheet
Returns
A new spreadsheet object
spreadsheet$set_active()
Set this spreadsheet as the active one
spreadsheet$set_not_active()
Remove this spreadsheet as the active one
Usage
spreadsheet$set_not_active()
spreadsheet$is_active()
Check if this is the active spreadsheet
spreadsheet$get_url()
Get the Google Sheets URL for this spreadsheet
Returns
Character URL or NULL
spreadsheet$browse()
Open the spreadsheet in a browser
spreadsheet$print()
Print method for spreadsheet objects
Arguments
...
Additional arguments (unused)