gd_user: Retrieve information about the current Google user

Description Usage Arguments Details Value See Also Examples

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

1
2
3
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

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

1
2
3
4
5
6
## Not run: 
## these are synonyms: gd = Google Drive, gs = Google Sheets
gd_user()
gs_user()

## End(Not run)

googlesheets documentation built on May 2, 2019, 1:57 p.m.