Hi,
I would like to know if the Garbage Collector (GC) changes the address of a
variable in R. In other words, assuming the following code:
library(pryr)
x <- 1:1024
addr <- address(x) # save address of variable "x" in "addr"
.
.
.
(execution of operations that create/destroy many small/big objects in
memory, which will likely make the GC to be called)
.
.
.
if (addr != address(x))
{
print("Address of x changed!")
}
Will the message "Address of x changed!" be ever printed?
Thank you!
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel