Returns the pointer address of its argument.

address(x)

Arguments

x

Anything.

Details

Sometimes useful in determining whether a value has been copied or not, programmatically.

Value

A character vector length 1.

See also

References

https://stackoverflow.com/a/10913296/403310 (but implemented in C without using .Internal(inspect()))

Examples

x=1
address(x)
#> [1] "0x55db01b08418"