R: Manipulating External Pointer

xptr {xptr} | R Documentation

## Manipulating External Pointer

### Description

There is limited native support for external pointers in the R interface. This package provides some basic tools to verify, create and modify 'externalptr' objects.

### References

- https://cran.r-project.org/doc/manuals/r-release/R-exts.html#External-pointers-and-weak-references

### Examples

    library(xptr)
    a <- new_xptr("0x11a888090")
    b <- new_xptr("0x11a888098")
    is_xpt(a)
    xptr_address(a)
    xptr_clear(a)
    is_null_xptr(a)
    set_xptr_address(a, xptr_address(b))
    xptr_address(a)

[Package xptr version 1.1.1 Index]