Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: bigrquery
Title: An Interface to Google's 'BigQuery' 'API'
Version: 1.3.2.9000
Version: 1.3.2.9001
Authors@R: c(
person("Hadley", "Wickham", , "hadley@rstudio.com", c("aut", "cre"),
comment = c(ORCID = "0000-0003-4757-117X")),
Expand Down
7 changes: 3 additions & 4 deletions R/bq-auth.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
## This file is the interface between bigrquery and the
## auth functionality in gargle.
.auth <- gargle::init_AuthState(
package = "bigrquery",
auth_active = TRUE
)

# Initialization happens in .onLoad
.auth <- NULL

## The roxygen comments for these functions are mostly generated from data
## in this list and template text maintained in gargle.
Expand Down
5 changes: 5 additions & 0 deletions R/zzz.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
.onLoad <- function(libname, pkgname) {

.auth <<- gargle::init_AuthState(
package = "bigrquery",
auth_active = TRUE
)

# S3 methods --------------------------------------------------------------
register_s3_method("dplyr", "collect", "tbl_BigQueryConnection")
register_s3_method("dplyr", "db_analyze", "BigQueryConnection")
Expand Down