MCPcopy Create free account
hub / github.com/apache/arrow / _arrow_TestSafeCallIntoR

Function _arrow_TestSafeCallIntoR

r/src/arrowExports.cpp:5139–5145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5137// safe-call-into-r-impl.cpp
5138std::string TestSafeCallIntoR(cpp11::function r_fun_that_returns_a_string, std::string opt);
5139extern "C" SEXP _arrow_TestSafeCallIntoR(SEXP r_fun_that_returns_a_string_sexp, SEXP opt_sexp){
5140BEGIN_CPP11
5141 arrow::r::Input<cpp11::function>::type r_fun_that_returns_a_string(r_fun_that_returns_a_string_sexp);
5142 arrow::r::Input<std::string>::type opt(opt_sexp);
5143 return cpp11::as_sexp(TestSafeCallIntoR(r_fun_that_returns_a_string, opt));
5144END_CPP11
5145}
5146// scalar.cpp
5147std::shared_ptr<arrow::Scalar> Array__GetScalar(const std::shared_ptr<arrow::Array>& x, int64_t i);
5148extern "C" SEXP _arrow_Array__GetScalar(SEXP x_sexp, SEXP i_sexp){

Callers

nothing calls this directly

Calls 2

as_sexpFunction · 0.85
TestSafeCallIntoRFunction · 0.85

Tested by

no test coverage detected