compile_code: Compile code associated to a user-defined operator with cmake

Description Usage Arguments Details Value Author(s) See Also

View source: R/common-compile_code.R

Description

The function compile_code is a wrapper to call cmake used in the function compile_formula().

Usage

1
compile_code(formula, var_aliases, dllname, cmake_dir)

Arguments

formula

text string, formula defining the new operator.

var_aliases

text string, formated formula input arguments returned by format_var_aliases() (specifically $var_aliases).

dllname

text string, the name associated to the related shared object file.

cmake_dir

text string, directory where to find the CMakeLists.txt file.

Details

The function compile_code should only be called in the directory where the build (i.e. generation of related cmake and so files) will be done.

The corresponging CMakeLists.txt file is located in directory cmake_dir given as input argument.

Value

an exit code (integer value), 0 if no problem, not 0 otherwise.

Author(s)

Ghislain Durif

See Also

compile_formula(), format_var_aliases()


rkeops documentation built on Feb. 17, 2021, 5:08 p.m.