[Rd] dynamic lists at C level

Gábor Csárdi csardi.gabor at gmail.com
Tue Nov 26 18:05:20 CET 2013


On Tue, Nov 26, 2013 at 11:57 AM, Adrian Duşa <dusa.adrian at gmail.com> wrote:
[...]
> I read the "Writing R Extensions" manual, I could only find how to
> handle with R lists in C (section 5.9.6 Handling lists), but I could
> not find how to <create> a list in C, and access its components, and
> this is basically where I got stuck.

Create a new list with NEW_LIST(), set elements with SET_VECTOR_ELT(),
query elements with VECTOR_ELT().

Search 'Writing R Extensions', and the R source code itself, and/or
the source code of packages (authored by people you can trust, not my
packages, please :), for the details.

Gabor

[...]



More information about the R-devel mailing list