Skip to content

Commit 31d69b7

Browse files
HELP: Clarify that option 'doFuture.foreach.export' only applies to %dopar% - and not when using %dofuture% [#93]
1 parent 62ace6f commit 31d69b7

File tree

3 files changed

+23
-21
lines changed

3 files changed

+23
-21
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.2-9001
2+
Version: 1.1.2-9002
33
Title: Use Foreach to Parallelize via the Future Framework
44
Depends:
55
foreach (>= 1.5.0),

R/options.R

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,24 @@
1010
#'
1111
#' \describe{
1212
#' \item{\option{doFuture.foreach.export}:}{
13-
#' Specifies to what extent the \code{.export} argument of
14-
#' \code{\link[foreach]{foreach}()} should be respected or if globals
15-
#' should be automatically identified.
13+
#' Specifies to what extent the `.export` argument of [foreach()], paired
14+
#' with [`%dopar%`], should be respected or if globals should be
15+
#' automatically identified. This is only for `%dopar%` -- [`%dofuture%`]
16+
#' does not support `.export` and `.noexport`.
1617
#'
17-
#' If \code{".export"}, then the globals specified by the \code{.export}
18+
#' If `".export"`, then the globals specified by the `.export`
1819
#' argument will be used "as is".
1920
#'
20-
#' If \code{".export-and-automatic"}, then globals specified by
21-
#' \code{.export} as well as those automatically identified are used.
21+
#' If `".export-and-automatic"`, then globals specified by
22+
#' `.export` as well as those automatically identified are used.
2223
#'
23-
#' The \code{".export-and-automatic-with-warning"} is the same as
24-
#' \code{".export-and-automatic"}, but produces a warning if \code{.export}
25-
#' lacks some of the globals that the automatic identification locates
26-
#' - this is helpful feedback to developers using \code{foreach()}.
24+
#' The `".export-and-automatic-with-warning"` is the same as
25+
#' `".export-and-automatic"`, but produces a warning if `.export`
26+
#' lacks some of the globals that the automatic identification locates,
27+
#' which could be helpful feedback to developers using [foreach()] with
28+
#' `%dopar%` -- also when using adapters such as **doFuture**.
2729
#'
28-
#' (Default: \code{".export-and-automatic"})
30+
#' (Default: `".export-and-automatic"`)
2931
#' }
3032
#'
3133
#' \item{\option{doFuture.debug}:}{If `TRUE`, extensive debug messages are
@@ -34,7 +36,7 @@
3436
#'
3537
#' @section Environment variables that set R options:
3638
#' All of the above \R \option{doFfuture.*} options can be set by
37-
#' corresponding environment variable \env{R_FOFUTURE_*} _when the
39+
#' corresponding environment variable \env{R_DOFUTURE_*} _when the
3840
#' \pkg{doFuture} package is loaded_.
3941
#' For example, if `R_DOFUTURE_DEBUG=TRUE`, then option
4042
#' \option{doFuture.debug} is set to `TRUE` (logical).

man/doFuture.options.Rd

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)