Creating the .auth object directly at the top-level means the code from gargle is snapshotted at build time.
Showing 2 of 3 files from the diff.
R/gs4_auth.R
changed.
Other files ignored by Codecov
DESCRIPTION
has changed.
@@ -1,10 +1,8 @@
Loading
1 | 1 | ## This file is the interface between googlesheets4 and the |
|
2 | 2 | ## auth functionality in gargle. |
|
3 | 3 | ||
4 | - | .auth <- gargle::AuthState$new( |
|
5 | - | package = "googlesheets4", |
|
6 | - | auth_active = TRUE |
|
7 | - | ) |
|
4 | + | # Initialization happens in .onLoad |
|
5 | + | .auth <- NULL |
|
8 | 6 | ||
9 | 7 | ## The roxygen comments for these functions are mostly generated from data |
|
10 | 8 | ## in this list and template text maintained in gargle. |
@@ -1,5 +1,10 @@
Loading
1 | 1 | .onLoad <- function(libname, pkgname) { |
|
2 | 2 | ||
3 | + | .auth <<- gargle::AuthState$new( |
|
4 | + | package = "googlesheets4", |
|
5 | + | auth_active = TRUE |
|
6 | + | ) |
|
7 | + | ||
3 | 8 | if (identical(Sys.getenv("IN_PKGDOWN"), "true") && |
|
4 | 9 | gargle:::secret_can_decrypt("googlesheets4") && |
|
5 | 10 | !is.null(curl::nslookup("sheets.googleapis.com", error = FALSE))) { |
Files | Coverage |
---|---|
R | 79.30% |
Project Totals (55 files) | 79.30% |
380922889
378793174
385092363
383055508
363074416
361472888
365876560
364323144
370069410
367965663
374231698
372138579
377230245
375979504
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.