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

Function _arrow_MakeArrayFromScalar

r/src/arrowExports.cpp:5183–5189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5181// scalar.cpp
5182std::shared_ptr<arrow::Array> MakeArrayFromScalar(const std::shared_ptr<arrow::Scalar>& scalar, int n);
5183extern "C" SEXP _arrow_MakeArrayFromScalar(SEXP scalar_sexp, SEXP n_sexp){
5184BEGIN_CPP11
5185 arrow::r::Input<const std::shared_ptr<arrow::Scalar>&>::type scalar(scalar_sexp);
5186 arrow::r::Input<int>::type n(n_sexp);
5187 return cpp11::as_sexp(MakeArrayFromScalar(scalar, n));
5188END_CPP11
5189}
5190// scalar.cpp
5191bool Scalar__is_valid(const std::shared_ptr<arrow::Scalar>& s);
5192extern "C" SEXP _arrow_Scalar__is_valid(SEXP s_sexp){

Callers

nothing calls this directly

Calls 2

as_sexpFunction · 0.85
MakeArrayFromScalarFunction · 0.70

Tested by

no test coverage detected