exported_funcs: Using Both Subdirectory Functions

calc_modificationsR Documentation

Using Both Subdirectory Functions

Description

These function serve as intermediaries between R and the subdirectory source.

Usage

calc_modifications(x)

calc_A_export(x)

calc_B_export(x)

Arguments

x

Vector of Numeric Values with length n.

Details

The exported function name is different from the subdirectory function. C++ does not allow duplicate function names with the same parameters. To preserve the original function name necessitates the subdirectory function being placed behind a namespace, e.g. 'A::calc_A_routine()'. Otherwise, the name of the function exported must be different, e.g. 'calc_A_export()'.

Value

A vector of numeric values with length n.

Examples

my_vec = c(3.5, 8, -1.5, -2, 0, 42)
calc_modifications(my_vec)
my_vecA = c(881, 884, 1,2,-4)
calc_A_export(my_vec)
my_vecB = c(512,32, -1, 1.3, 5.9)
calc_B_export(my_vecB)

coatless/header_cpp_subdir_code documentation built on March 13, 2024, 6:01 a.m.