bigQueryR (version 0.2.0)

bqr_auth: Do OAuth2 authentication

Description

Do OAuth2 authentication

Usage

bqr_auth(token = NULL, new_user = FALSE)

Arguments

token
An existing OAuth2 token, if you have one.
new_user
Set to TRUE if you want to go through the authentication flow again.

Details

This function just wraps gar_auth from googleAuthR, but means you don't need to explictly load that library.

See Also

gar_auth

Other bigQuery meta functions: bqr_create_table, bqr_delete_table, bqr_list_datasets, bqr_list_projects, bqr_list_tables, bqr_table_data, bqr_table_meta

Examples

Run this code

## Not run: 
#   library(bigQueryR)
#   
#   ## this will open your browser
#   ## Authenticate with an email that has access to the BigQuery project you need
#   bqr_auth()
#   
#   ## verify under a new user
#   bqr_auth(new_user=TRUE)
#   
# ## End(Not run)

Run the code above in your browser using DataCamp Workspace