Skip to content

Commit

Permalink
collector, triggered by env var
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Apr 18, 2024
1 parent d698022 commit 67b0b9b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/zzz.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
.onLoad <- function(libname, pkgname) {
if (Sys.getenv("COLLECTOR_PATH") != "") {
dir.create(Sys.getenv("COLLECTOR_PATH"), recursive = TRUE, showWarnings = FALSE)
collector::set_collector(path = Sys.getenv("COLLECTOR_PATH"))
}

ns_dplyr <- ns_env(pkgname)

op <- options()
Expand Down

0 comments on commit 67b0b9b

Please sign in to comment.