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.
conda install conda-forge::r-xptr
conda install conda-forge/label/cf202003::r-xptr