A simple program to test R binding functionality.
test_r_binding(
double_in,
int_in,
string_in,
build_model = FALSE,
col_in = NA,
flag1 = FALSE,
flag2 = FALSE,
matrix_and_info_in = NA,
matrix_in = NA,
model_in = NA,
row_in = NA,
str_vector_in = NA,
tmatrix_in = NA,
ucol_in = NA,
umatrix_in = NA,
urow_in = NA,
vector_in = NA,
verbose = getOption("mlpack.verbose", FALSE)
)
A list with several components:
Output column. 2x input colum (numeric column).
Output double, will be 5.0. Default value "0" (numeric).
Output int, will be 13. Default value "0" (integer).
Output matrix and info; all numeric elements multiplied by 3 (numeric matrix).
Output matrix (numeric matrix).
The bandwidth of the model. Default value "0" (numeric).
Output model, with twice the bandwidth (GaussianKernel).
Output row. 2x input row (numeric row).
Output string vector (character vector).
Output string, will be 'hello2'. Default value "" (character).
Output unsigned column. 2x input column (integer column).
Output unsigned matrix (integer matrix).
Output unsigned row. 2x input row (integer row).
Output vector (integer vector).
Input double, must be 4.0 (numeric).
Input int, must be 12 (integer).
Input string, must be 'hello' (character).
If true, a model will be returned. Default value "FALSE" (logical).
Input column (numeric column).
Input flag, must be specified. Default value "FALSE" (logical).
Input flag, must not be specified. Default value "FALSE" (logical).
Input matrix and info (numeric matrix/data.frame with info).
Input matrix (numeric matrix).
Input model (GaussianKernel).
Input row (numeric row).
Input vector of strings (character vector).
Input (transposed) matrix (numeric matrix).
Input unsigned column (integer column).
Input unsigned matrix (integer matrix).
Input unsigned row (integer row).
Input vector of numbers (integer vector).
Display informational messages and the full list of parameters and timers at the end of execution. Default value "getOption("mlpack.verbose", FALSE)" (logical).
mlpack developers
A simple program to test R binding functionality. You can build mlpack with the BUILD_TESTS option set to off, and this binding will no longer be built.