-
-
Notifications
You must be signed in to change notification settings - Fork 50
disable lockfile generation in callr, testthat::tests and R CMD CHECK
#1346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
2d2883c
9e5a8d3
7bc4ab4
d54cb80
1862043
1dd4758
14d4a14
adb8440
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
pawelru marked this conversation as resolved.
Show resolved
Hide resolved
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,19 @@ | ||
| .onLoad <- function(libname, pkgname) { | ||
| # adapted from https://github.com/r-lib/devtools/blob/master/R/zzz.R | ||
|
|
||
| lockfile_flag <- | ||
| !( | ||
| identical(Sys.getenv("CALLR_IS_RUNNING"), "true") || # inside callr process | ||
| identical(Sys.getenv("TESTTHAT"), "true") || # inside devtools::test | ||
|
||
| !identical(Sys.getenv("QUARTO_PROJECT_ROOT"), "") || # inside Quarto process | ||
| ( | ||
| ("CheckExEnv" %in% search()) || any(c("_R_CHECK_TIMINGS_", "_R_CHECK_LICENSE_") %in% names(Sys.getenv())) | ||
| ) # inside R CMD CHECK | ||
| ) | ||
|
|
||
| teal_default_options <- list( | ||
| teal.show_js_log = FALSE, | ||
| teal.lockfile.enable = TRUE, | ||
| teal.lockfile.enable = lockfile_flag, | ||
| shiny.sanitize.errors = FALSE | ||
| ) | ||
|
|
||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.