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

Function _arrow_TestSafeCallIntoR

r/src/arrowExports.cpp:5182–5188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5180// safe-call-into-r-impl.cpp
5181std::string TestSafeCallIntoR(cpp11::function r_fun_that_returns_a_string, std::string opt);
5182extern "C" SEXP _arrow_TestSafeCallIntoR(SEXP r_fun_that_returns_a_string_sexp, SEXP opt_sexp){
5183BEGIN_CPP11
5184 arrow::r::Input<cpp11::function>::type r_fun_that_returns_a_string(r_fun_that_returns_a_string_sexp);
5185 arrow::r::Input<std::string>::type opt(opt_sexp);
5186 return cpp11::as_sexp(TestSafeCallIntoR(r_fun_that_returns_a_string, opt));
5187END_CPP11
5188}
5189// scalar.cpp
5190std::shared_ptr<arrow::Scalar> Array__GetScalar(const std::shared_ptr<arrow::Array>& x, int64_t i);
5191extern "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