R Under development (unstable) (2025-10-02 r88897 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > > library(xptr) > > a <- new_xptr("0xdeadbeef") > is_xptr(a) [1] TRUE > is.character(xptr_address(a)) [1] TRUE > is.character(xptr_address(a, FALSE)) [1] TRUE > > b <- new_xptr("0x11223344") > is_xptr(b) [1] TRUE > is.character(xptr_address(b)) [1] TRUE > is.character(xptr_address(b, FALSE)) [1] TRUE > > xptr_clear(b) > is_null_xptr(b) [1] TRUE > > set_xptr_address(b, xptr_address(a)) > is.character(xptr_address(b)) [1] TRUE > is.character(xptr_address(b, FALSE)) [1] TRUE > > xptr_clear(a) > xptr_clear(b) > > a <- new_xptr("0x11223344") > b <- new_xptr("0x11223344", a) > is_xptr(a) [1] TRUE > is_xptr(b) [1] TRUE > > n <- xptr_tag(b) > is_xptr(n) [1] TRUE > > proc.time() user system elapsed 0.12 0.03 0.14