Skip to content
Open
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,7 +1,7 @@
Package: gcalendr
Type: Package
Title: Read Events From Google Calendar
Version: 0.2.1.9004
Version: 0.2.1.9005
Authors@R:
c(person("Andrie",
"de Vries",
Expand Down
6 changes: 6 additions & 0 deletions R/aaa.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.onLoad <- function(libname, pkgname) {
.auth <<- gargle::init_AuthState(
package = "gcalendr",
auth_active = TRUE
)
}
6 changes: 2 additions & 4 deletions R/gcalendr_auth.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ calendar_app <- function() {
)
}

.auth <- gargle::init_AuthState(
package = "gcalendr",
auth_active = TRUE
)
# Initialized 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