Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gd_user

Retrieve information about the current Google user


Description

Retrieve information about the Google user that has authorized googlesheets to call the Drive and Sheets APIs on their behalf. As long as full = FALSE (the default), only the most useful subset of the information available from the "about" endpoint of the Drive API is returned. This is also the information exposed in the print method:

Usage

gd_user(full = FALSE, verbose = TRUE)

gs_user(full = FALSE, verbose = TRUE)

Arguments

full

Logical, indicating whether to return selected (FALSE, the default) or full (TRUE) user information.

verbose

logical; do you want informative messages?

Details

  • User's display name

  • User's email

  • Date-time of user info lookup

  • User's permission ID

  • User's root folder ID

When full = TRUE, all information provided by the API is returned.

Value

an object of S3 class 'drive_user', which is just a list

See Also

Other auth functions: gs_auth, gs_deauth

Examples

## Not run: 
## these are synonyms: gd = Google Drive, gs = Google Sheets
gd_user()
gs_user()

## End(Not run)

googlesheets

Manage Google Spreadsheets from R

v0.3.0
MIT + file LICENSE
Authors
Jennifer Bryan [aut, cre], Joanna Zhao [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.