Displaying 1 result from an estimated 1 matches for "r66504".
Did you mean:
66504
2014 Sep 02
0
unexpected behavior of <<- in nlm (lazy?)
...## Unexpected behavior:
# R version 3.1.0 (2014-04-10) -- "Spring Dance"
# Platform: x86_64-redhat-linux-gnu (64-bit)
#
## AND
#
# R version 3.1.1 (2014-07-10) -- "Sock it to Me"
# Platform: x86_64-w64-mingw32/x64 (64-bit)
#
## AND
#
# R Under development (unstable) (2014-08-31 r66504) --
# "Unsuffered Consequences"
# Platform: i386-w64-mingw32/i386 (32-bit)
f <- function(x, a) {
cat(x[1], x.old[1], x.old1[1], x.old1 == x.old, "\n")
x.old <<- x # 'reference'
x.old1 <<- x * 1 # copy
res <- sum((x...