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

Function _arrow_TestSafeCallIntoR

r/src/arrowExports.cpp:5197–5203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5195// safe-call-into-r-impl.cpp
5196std::string TestSafeCallIntoR(cpp11::function r_fun_that_returns_a_string, std::string opt);
5197extern "C" SEXP _arrow_TestSafeCallIntoR(SEXP r_fun_that_returns_a_string_sexp, SEXP opt_sexp){
5198BEGIN_CPP11
5199 arrow::r::Input<cpp11::function>::type r_fun_that_returns_a_string(r_fun_that_returns_a_string_sexp);
5200 arrow::r::Input<std::string>::type opt(opt_sexp);
5201 return cpp11::as_sexp(TestSafeCallIntoR(r_fun_that_returns_a_string, opt));
5202END_CPP11
5203}
5204// scalar.cpp
5205std::shared_ptr<arrow::Scalar> Array__GetScalar(const std::shared_ptr<arrow::Array>& x, int64_t i);
5206extern "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