xptr: Manipulating External Pointer

Description References Examples

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

Examples

1
2
3
4
5
6
7
8
9
library(xptr)
a <- new_xptr("0x11a888090")
b <- new_xptr("0x11a888098")
is_xptr(a)
xptr_address(a)
xptr_clear(a)
is_null_xptr(a)
set_xptr_address(a, xptr_address(b))
xptr_address(a)

randy3k/xptr documentation built on Aug. 3, 2020, 8:39 a.m.