gs4_get: Get Sheet metadata

Description Usage Arguments Value See Also Examples

View source: R/gs4_get.R

Description

Retrieve spreadsheet-specific metadata, such as details on the individual (work)sheets or named ranges.

Usage

1
gs4_get(ss)

Arguments

ss

Something that identifies a Google Sheet:

  • its file id as a string or drive_id

  • a URL from which we can recover the id

  • 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().

Value

A list with S3 class googlesheets4_spreadsheet, for printing purposes.

See Also

Wraps the spreadsheets.get endpoint:

Examples

1
2
3
if (gs4_has_token()) {
  gs4_get(gs4_example("mini-gap"))
}

Example output



googlesheets4 documentation built on July 22, 2021, 1:07 a.m.