Learn R Programming

rkeops (version 1.4.2.2)

load_dll: Load function from dll shared library for user-defined operator

Description

User-defined operators are compiled in shared library files. The associated function can be load into R with the function load_dll.

Usage

load_dll(path, dllname, object, tag = "_binder_", genred = FALSE)

Value

loaded function

Arguments

path

test string, path to directory where the dll file can be found.

dllname

text string, dll file name (without the extension).

object

text string, function from the dll file to be loaded in R.

tag

text string, prefix used internally in Rcpp. Default value is "_binder_". This argument is only used in the unit tests.

genred

boolean, loading genred function or not (different signatures).

Author

Ghislain Durif

Details

When compiling a user-defined operators, a shared object (so) library (or dynamic link library, dll) file is created in the directory build_dir specified in compile options of rkeops. For every new operators, such a file is created.

When using a user-defined operator, it is imported into R with the function load_dll. This function is specifically designed to load rkeops-related operators with a particular signature (and a test function without input paremeter).