Holds a spreadsheet identifier, i.e. a string. This is what the Sheets and Drive APIs refer to as spreadsheetId and fileId, respectively. Any object of class sheets_id will also have the drive_id class, which is used by googledrive for the same purpose.

This means you can pipe a sheets_id object straight into googledrive functions for all your Google Drive needs that have nothing to do with the file being a spreadsheet. Examples: examine or change file name, path, or permissions, copy the file, or visit it in a web browser.

## See also

as_sheets_id()

## Examples

sheets_example("mini-gap")#> [1] "1BMtx1V2pk2KG2HGANvvBOaZM4Jx1DUdRrFdEx-OJIGY"
#> attr(,"class")
#> [1] "sheets_id" "drive_id"