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

Function test_rng_false

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

[[Rcpp::export( rng = false )]]

Source from the content-addressed store, hash-verified

35
36// [[Rcpp::export( rng = false )]]
37List test_rng_false(List x, bool verbose) {
38 if(x.size() > 0) {
39 CharacterVector first_element = x[0];
40 return List::create(first_element, verbose);
41 } else {
42 return List::create(verbose);
43 }
44}
45
46// [[Rcpp::export( rng = true )]]
47List test_rng_true(List x, bool verbose) {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected