googlesheets
package must gather information on a Google Sheet
from googlesheet
object. Note this object does not contain any sheet data, but rather contains
metadata about the sheet. We populate a googlesheet
object with information from the
gs_title(x, verbose = TRUE)gs_key(x, lookup = NULL, visibility = NULL, verbose = TRUE)
gs_url(x, lookup = NULL, visibility = NULL, verbose = TRUE)
gs_ws_feed(x, lookup = NULL, verbose = TRUE)
gs_gs(x, visibility = NULL, verbose = TRUE)
gs_gs
only, a googlesheet
objectgooglesheets
will
place authorized API requests during registration. If unspecified, will
be set to TRUE
if authorization has previously been used in this R
session, if working directory contailookup = FALSE
and googlesheets
is prevented from
looking up information in the spreadsheetsgooglesheet
objectgooglesheet
will contain information on:sheet_key
the key of the spreadsheetsheet_title
the title of the spreadsheetn_ws
the number of worksheets contained in the spreadsheetws_feed
the "worksheets feed" of the spreadsheetupdated
the time of last update (at time of registration)reg_date
the time of registrationvisibility
visibility of spreadsheet (Google's confusing
vocabulary); actually, does not describe a property of spreadsheet
itself but rather whether requests will be made with or without
authorizationis_public
logical indicating visibility is "public" (meaning
unauthenticated requests will be sent), as opposed to "private" (meaning
authenticated requests will be sent)author
the name of the owneremail
the email of the ownerlinks
data.frame of links specific to the spreadsheetws
a data.frame about the worksheets contained in the
spreadsheetA googlesheet
object will contain this information from the
spreadsheets feed if it was available at the time of registration:
alt_key
alternate key; applies only to "old" sheetsSince the spreadsheets feed contains private user data, googlesheets
must be properly authorized to access it. So a googlesheet
object will
only contain info from the spreadsheets feed if lookup = TRUE
, which
directs us to look up sheet-identifying information in the spreadsheets feed.