This helper function lets you use environment variables to auto-authenticate on package load, intended for calling by gar_attach_auto_auth
gar_auto_auth(required_scopes, new_user = FALSE, no_auto = FALSE, environment_var = "GAR_AUTH_FILE", travis_environment_var = NULL)
.httr-oauthfile created via gar_auth or a Google service JSON file downloaded from the Google API credential console, with file extension
.json. You can use this in your code to authenticate from a file location specified in file, but it is mainly intended to be called on package load via gar_attach_auto_auth.
environment_varThis is the name that will be called via Sys.getenv on library load. The environment variable will contain an absolute file path to the location of an authentication file.
an OAuth token object, specifically a
Help files for .onAttach