obj_addr() gives the address of the value that x points to; obj_addrs() gives the address of the components the list, environment, and character vector x point to.

obj_addr(x)

obj_addrs(x)

## Arguments

x An object

## Details

obj_addr() has been written in such away that it avoids taking references to an object.

## Examples

# R creates copies lazily
x <- 1:10
y <- x
obj_addr(1:10)#> [1] "0x7daf078"obj_addr(1:10)#> [1] "0x7e19090"obj_addr(1:10)#> [1] "0x5cc65d8"