Skip to contents

Find and load shared libraries

Locate libraries, open dynamic library handles, and resolve C symbols.

dynfind() dynfind_explain()
Portable searching and loading of shared libraries
dynload() dynunload() dynsym() dynpath() dyncount() dynlist()
Loading of shared libraries and resolving of symbols (Alternative Framework)

Call and bind C functions

Call C function pointers directly or create thin R wrappers from signatures.

Structures, unions, and memory

Describe aggregate C types and read or write low-level memory values.

cstruct() cunion() as.ctype() cdata() `$`(<struct>) `$<-`(<struct>) print(<struct>) print(<ctype>)
Allocation and handling of foreign C aggregate data types
typeinfo() print(<typeinfo>) get_typeinfo()
S3 class for run-time type information of foreign C data types
pack() unpack()
Handling of foreign C fundamental data types
is.nullptr() as.externalptr() offset_ptr() is.externalptr() as.floatraw() floatraw2numeric() floatraw() print(<floatraw>) ptr2str() strarrayptr() strptr()
Utility functions for working with foreign C data types

Callbacks

Expose R functions as C callback pointers and inspect callback state.

Generated DynPort bindings

Build, load, and manage generated R packages from DynPort metadata.

dynport() dynport_install_package() dynport_load_into() dynport_lib() dynport_clear_lib()
Dynamic R Bindings to standard and common C libraries

Demos

Shared library notes for the bundled demos.

rdyncall-demos
rdyncall demos: shared library notes