# NOT RUN {
# load/refresh existing credentials, if available
# otherwise, go to browser for authentication and authorization
drive_auth()
# see user associated with current token
drive_user()
# force use of a token associated with a specific email
drive_auth(email = "jenny@example.com")
drive_user()
# force the OAuth web dance
drive_auth(email = NA)
# use a 'read only' scope, so it's impossible to edit or delete files
drive_auth(
scopes = "https://www.googleapis.com/auth/drive.readonly"
)
# use a service account token
drive_auth(path = "foofy-83ee9e7c9c48.json")
# }
Run the code above in your browser using DataLab