Converts various representations of a Google Sheet into a sheets_id object. Anticipated inputs:

This is a generic function.

as_sheets_id(x, ...)

Arguments

x

Something that uniquely identifies a Google Sheet: a sheets_id, a URL, one-row dribble, or a googlesheets4_spreadsheet.

...

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

Examples

#> Spreadsheet name: <unknown> #> ID: abc #> Locale: <unknown> #> Time zone: <unknown> #> # of sheets: <unknown> #> #> Unable to get metadata for this Sheet. Error details: #> Can't get Google credentials. #> Are you running googlesheets4 in a non-interactive session? Consider: #> * `gs4_deauth()` to prevent the attempt to get credentials. #> * Call `gs4_auth()` directly with all necessary specifics. #> See gargle's "Non-interactive auth" vignette for more details: #> https://gargle.r-lib.org/articles/non-interactive-auth.html