foreachDoparLocal
system option to TRUE.
Added preliminary support for evaluating %dopar%
expressions in a local environment, when a sequential backend is used.
This addresses a long-standing inconsistency in the behaviour of
%dopar% with parallel and sequential backends, where the
latter would evaluate the loop body in the global environment by
default. The behaviour of %dopar% can be controlled by
setting
options(foreachDoparLocal=TRUE|FALSE)
or equivalently via the system environment variable
R_FOREACH_DOPAR_LOCAL=TRUE|FALSE
with the R option taking its value from the environment variable. If
both are set, the former overrides the latter. The current default value
is FALSE, which retains the pre-existing behaviour. It is intended that
over time this will be changed to TRUE.
%do%
and %dopar% will (eventually) be different for a sequential
backend. See https://github.com/RevolutionAnalytics/foreach/issues/3 for
more discussion on this issue.
seq(along=tags) call in makeAccum
to seq(along.with=tags); request of Henrik Bengtsson.foreach help to describe effect of multiple
arguments; request of David Winsemius.getDoSEQ. Bug report from
Ben Barnes..onLoad to
.onAttach. Bug report from Benilton Carvalho.setDoPar and setDoSeq to undo
changes to .foreachGlobals on error. Bug report from Benilton
Carvalho.inst/doc to
vignettes.DESCRIPTION file by moving codetools,
iterators, and utils from Depends to Imports. Bug report from Suraj
Gupta.doRUnit.R to use no more than two cores during
R CMD check.