cpp_assert: Input Parameters Assertive Tool

View source: R/RcppExports.R

cpp_assertR Documentation

Input Parameters Assertive Tool

Description

Ensures that x respects several parameters

Arguments

len

IntegerVector, of allowed length for x. Default is NULL, for not checking this parameter.

cla

CharacterVector, of allowed classes of x. Default is NULL, for not checking this parameter.

typ

CharacterVector, of allowed types of x. Default is NULL, for not checking this parameter.

Robject

of allowed values for x (will be passed to cpp_allowed). Default is NULL, for not checking this parameter.

fun

CharacterVector, function to execute when mandatory parameters are not met. Default is "stop". Allowed are "stop","warning","message","return". fun is placed in cpp_assert() in order to check it is correct before being used in assert() function.


IFC documentation built on Sept. 14, 2023, 1:08 a.m.