search for: vecsexp

Displaying 5 results from an estimated 5 matches for "vecsexp".

2009 Nov 21
1
R strings, null-terminated or size delimited?
Hello. I've been looking at vecsexps for my binding. Concerning strings, I'm wondering: are they supposed to be null-delimited? Are they delimited by the info in the SEXPHEADER macro in Rinternals.h? Basically, what are the macros or functions to access the values of the vecsexps? I'm thinking of CHARSXPs and INTSXPs for...
2005 Oct 24
2
R_MakeExternalPtr
Hi, I'm using R_MakeExternalPtr() to store handles to (COM) objects in a SEXP. The code basically is sexp = R_MakeExternalPtr(handle,R_NilValue,R_NilValue); R_RegisterCFinalizerEx(...); After creating the sexp, LENGTH(sexp) returns some quite large integer value. It seems like an "unitialized" value. Can I safely assume, that an SEXP of type EXTPTRSXP can only contain a single
2003 Dec 31
1
programming with C++Builder 5
...rnal functions or macros defined in Rinternals.h file. I can not find the reason. I have included R.h and Rinternals.h, generated and added R.lib and R.def to the project. It seems no effects. I tried to directly use structure member instead of a macro, e.g. "LENGTH(OBJ)" with "((VECSEXP) (obj))->vecsxp.length", getting an error "Symbol VECSEXP not defined". I noticed when generating R.lib and .def file, it reported warning messages about some duplicated functions within R.dll. But I am not sure whether it is the reason and how to solve it. I am using C++Builde...
2003 Dec 31
1
programming with C++Builder 5
...rnal functions or macros defined in Rinternals.h file. I can not find the reason. I have included R.h and Rinternals.h, generated and added R.lib and R.def to the project. It seems no effects. I tried to directly use structure member instead of a macro, e.g. "LENGTH(OBJ)" with "((VECSEXP) (obj))->vecsxp.length", getting an error "Symbol VECSEXP not defined". I noticed when generating R.lib and .def file, it reported warning messages about some duplicated functions within R.dll. But I am not sure whether it is the reason and how to solve it. I am using C++Builde...
2005 Jun 29
1
Viewing R objects in gdb
I'm trying to track down a bug in some experimental code, where an object's attribute is getting messed up. This means I'd like to examine R objects while within gdb. One of the things I'd like to do is to examine the names of all the attributes. This is exactly what an example in the R Extensions manual section 4.11.2 "Inspecting R objects when debugging" does,