Skip to content

Commit

Permalink
FIX: Exports of objects available in packages already attached by the…
Browse files Browse the repository at this point in the history
… future were still exported [#56]
  • Loading branch information
HenrikBengtsson committed Feb 20, 2016
1 parent 256b286 commit 57319e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: future
===============

Version: 0.11.0-9000 [2016-02-19]
Version: 0.11.0-9000 [2016-02-20]
o It is only the R process that created a future that can resolve it.
If a non-resolved future is queried by another R process, then an
informative error is generated explaining that this is not possible.
Expand All @@ -19,6 +19,8 @@ o Added option 'future.globals.resolve' for controling whether global
future, then an informative error message is generated clarifying
that only the R process that created the future can resolve it.
The default is currently FALSE.
o FIX: Exports of objects available in packages already attached
by the future were still exported.
o FIX: Now availableCores() returns 3L (=2L+1L) instead of 2L
if _R_CHECK_LIMIT_CORES_ is set.

Expand Down
1 change: 1 addition & 0 deletions R/globals.R
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ getGlobalsAndPackages <- function(expr, envir=parent.frame(), tweak=tweakExpress
names(keep) <- names
for (name in names) {
pkg <- environmentName(where[[name]])
pkg <- gsub("^package:", "", pkg)
if (pkg %in% pkgs) {
## Only drop exported objects
if (exists(name, envir=asPkgEnvironment(pkg)))
Expand Down

0 comments on commit 57319e5

Please sign in to comment.