src/libK/bindings/R/rlibkriging/EXPLAIN.md

About NAMESPACE

Rcpp

Methodology

A typical new function in R binding of libKriging looks like:

// [[Rcpp::export]]
OutType featureName(InType1 t1,
                    InType2 t2,
                    InType3 t3 = default_value3) {
    // Body
}

If that function uses armadillo types/methods, add the appropriate dependency:

// For using armadillo types
// Also required if lib.h as signature using armadillo types
#include <RcppArmadillo.h>

#include "lib.h"

// [[Rcpp::depends("RcppArmadillo")]] // for armadillo methods
// [[Rcpp::export]]
arma::vec featureName(arma::mat m1,
                      InType2 t2,
                      InType3 t3 = default_value3) {
    // Body with arma:: methods
}


Try the rlibkriging package in your browser

Any scripts or data that you put into this service are public.

rlibkriging documentation built on July 9, 2023, 5:53 p.m.