We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef911bf commit 1e7ad50Copy full SHA for 1e7ad50
R/zzz.R
@@ -20,6 +20,14 @@ attr(multicore, "backend") <- MulticoreFutureBackend
20
update_package_option("future.debug", mode = "logical")
21
debug <- isTRUE(getOption("future.debug"))
22
23
+ ## Special case: Disable 'R_FUTURE_PLAN' when 'R CMD check'
24
+ ## runs checks on examples, because, for instance,
25
+ ## R_FUTURE_PLAN=multisession, will create connections that
26
+ ## the check code will think are left over connections.
27
+ if (!is.na(Sys.getenv("R_FUTURE_PLAN")) && "CheckExEnv" %in% search()) {
28
+ Sys.unsetenv("R_FUTURE_PLAN")
29
+ }
30
+
31
if (debug) {
32
envs <- Sys.getenv()
33
envs <- envs[grep("R_FUTURE_", names(envs), fixed = TRUE)]
0 commit comments