Commit 7593b963 authored by Radford Neal's avatar Radford Neal

make default env size NA

parent deb84334
......@@ -21,6 +21,9 @@
of a symbol returns NULL. Previously (and also in R-3.4.0),
attributes could be attached to symbols, but they were lost
when a workspace was saved and restored.
\item The default \code{size} for \code{new.env} is now \code{NA}, which
gives an internal default, which now varies depending on the
platform and configuration options.
}}
}
......
......@@ -2,3 +2,5 @@ Changes regarding hashed environments.
Minimum size of hash table now depends on pointer size/type.
Now expands by factors of two.
Default env size is now NA (internal default).
......@@ -33,7 +33,7 @@ evalq <-
is.pairlist(envir)) parent.frame() else baseenv())
.Internal(eval(substitute(expr), envir, enclos))
new.env <- function (hash = TRUE, parent = parent.frame(), size = 29L)
new.env <- function (hash = TRUE, parent = parent.frame(), size = NA)
.Internal(new.env(hash, parent, size))
parent.env <- function(env)
......
......@@ -36,7 +36,7 @@ globalenv()
emptyenv()
baseenv()
new.env(hash = TRUE, parent = parent.frame(), size = 29L)
new.env(hash = TRUE, parent = parent.frame(), size = NA)
parent.env(env)
parent.env(env) <- value
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment