Skip to content

Commit

Permalink
Update BQ_auth.R
Browse files Browse the repository at this point in the history
  • Loading branch information
samudzi authored Mar 3, 2021
1 parent 0719e10 commit 9d35e03
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lookr/R/BQ_auth.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Provide authentication
## input auth.json file location
provideBQAuthentication <- function(json_path="~/auth.json",projectid="project-id",datasetid="dataset-id",conn="bq_conn")
## Set GC_BQ_PROJECTID and GC_BQ_DATASETID and environment variables in your .Renviron

provideBQAuthentication <- function(json_path="../service/auth.json",projectid=Sys.getenv("GC_BQ_PROJECTID"),
datasetid=Sys.getenv("GC_BQ_DATASETID"),conn="bq_conn")
{
bq_auth(path = json_path)
bq_auth(use_oob = TRUE)
Expand Down

0 comments on commit 9d35e03

Please sign in to comment.