dlsym | R Documentation |
This gets a pointer to a named routine by looking
for it in either the R executable or a specified
shared library (DSO/DLL).
We added this so that we could access routines
in the R executable which are not accessible
via getNativeSymbolInfo
as that does not
perform dynamic lookup on the R executable, only on
loaded DSO/DLLs.
However, it turns out we don't actually need this
as LLVM will implicitly find the external symbols we reference
in a Module and will look in the host application's symbol table.
dlsym(id, dll = NULL)
id |
the name of the routine to find |
dll |
the DSO/DLL in which to search for the named routine.
|
This calls the UNIX dlsym
routine, along with dlopen
and
dlclose
as necessary.
An object of class NativeSymbol
.
This is a list with one element named address
which contains an externalptr
whose
value is the memory address of the routine we are querying.
DTL
getNativeSymbolInfo
dlsym("Rf_protect")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.