MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / test_signature

Function test_signature

inst/tinytest/testRcppAttributePackage/src/rcpp_test.cpp:17–24  ·  view source on GitHub ↗

[[Rcpp::export( signature = {x = list("{A}", "B"), verbose = getOption("verbose")} )]]

Source from the content-addressed store, hash-verified

15
16// [[Rcpp::export( signature = {x = list("{A}", "B"), verbose = getOption("verbose")} )]]
17List test_signature(List x, bool verbose) {
18 if(x.size() > 0) {
19 CharacterVector first_element = x[0];
20 return List::create(first_element, verbose);
21 } else {
22 return List::create(verbose);
23 }
24}
25
26// [[Rcpp::export( rng = false, signature = {x = list("{A}", "B"), verbose = getOption("verbose")}, invisible = true )]]
27List test_rng_false_signature_invisible_true(List x, bool verbose) {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected