search for: vector_ptr_ro

Displaying 2 results from an estimated 2 matches for "vector_ptr_ro".

2025 Mar 25
2
Patch for RJSONIO
...17:49:50.490016649 -0500 @@ -2,6 +2,7 @@ #include <Rinternals.h> #include <Rdefines.h> +#include <Rversion.h> #include "ConvertUTF.h" @@ -70,7 +71,11 @@ ptr = REAL(tmp); break; case VECSXP: +#if R_VERSION >= R_Version(4,5,0) ptr = (void *) VECTOR_PTR_RO(tmp); +#else + ptr = (void *) VECTOR_PTR(tmp); +#endif break; default: ptr = NULL; -- dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
2024 Jun 09
1
[External] Re: changes in R-devel and zero-extent objects in Rcpp
Sorry to ask about a bit drifted topic, but will there be an alternative API to DATAPTR? > DATAPTR is not in the API and can't be at least in this form I believe it's vital for ALTREP to return the pointer to the expanded version of a SEXP just like the implementation in base R does [1]. At least, VECSXP has no other measure to expose the pointer if I understand correctly. Best,