Advanced-R-Solutions icon indicating copy to clipboard operation
Advanced-R-Solutions copied to clipboard

lobstr::obj_addr

Open scipima opened this issue 3 years ago • 0 comments

quick question, in exercise Q2, section 1.1, why don't i get the same address if I pass the list of mean function as argument of lapply/map?

in other words, if i run lapply(list(mean, base::mean, get("mean"), evalq(mean), match.fun("mean")), lobstr::obj_addr) the object address is not the same. [[1]] [1] "0x2479064a378"

[[2]] [1] "0x2479064cf58"

[[3]] [1] "0x2479064bc18"

[[4]] [1] "0x24790652818"

[[5]] [1] "0x247906514d8"

scipima avatar Jul 30 '22 15:07 scipima