This method implements googledrive::as_id() for the class used here to hold metadata for a Sheet. It just calls as_sheets_id(), but it's handy in case you forget that exists and hope that as_id() will "just work".

# S3 method for googlesheets4_spreadsheet
as_id(x, ...)

Arguments

x

An instance of googlesheets4_spreadsheet, which is returned by, e.g., gs4_get().

...

Other arguments passed down to methods. (Not used.)

Value

A character vector bearing the S3 class drive_id.

Examples

if (gs4_has_token()) { ss <- gs4_get(gs4_example("mini-gap")) class(ss) googledrive::as_id(ss) }
#> Spreadsheet name: mini-gap #> ID: 1k94ZVVl6sdj0AXfK9MQOuQ4rOhd1PULqpAu2_kr9MAU #> Locale: en_US #> Time zone: America/Los_Angeles #> # of sheets: 5 #> #> (Sheet name): (Nominal extent in rows x columns) #> Africa: 6 x 6 #> Americas: 6 x 6 #> Asia: 6 x 6 #> Europe: 6 x 6 #> Oceania: 6 x 6