Skip to content

Commit 32e5b5a

Browse files
BUG FIX: Environment variable R_DOFUTURE_DEBUG did not set R option doFuture.debug as documented [#89]
1 parent 6003cdc commit 32e5b5a

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: doFuture
2-
Version: 1.1.1-9000
2+
Version: 1.1.1-9001
33
Title: Use Foreach to Parallelize via the Future Framework
44
Depends:
55
foreach (>= 1.5.0),

NEWS.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Version (development version)
22

3-
* ...
3+
## Bug Fixes
4+
5+
* Environment variable `R_DOFUTURE_DEBUG` did not set R option
6+
`doFuture.debug` as documented.
47

58

69
# Version 1.1.1 (2025-06-06)

R/zzz.R

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ inRCmdCheck <- local({
6868
.onLoad <- function(libname, pkgname) {
6969
import_future_functions()
7070

71+
value <- getOption("doFuture.debug")
72+
if (is.null(value)) {
73+
value <- trim(Sys.getenv("R_DOFUTURE_DEBUG"))
74+
value <- isTRUE(as.logical(value))
75+
options(doFuture.debug = value)
76+
}
77+
7178
value <- getOption("doFuture.workarounds")
7279
if (is.null(value)) {
7380
value <- trim(Sys.getenv("R_DOFUTURE_WORKAROUNDS"))

0 commit comments

Comments
 (0)