Re: [Rd] How to generate R objects in C?

2009-06-03 Thread Mathieu Ribatet
This is indeed details in Writing R Extensions. You should have a closer look at sections 5.9.3 and 5.9.4. Look at the pieces of C code, they will help you a lot. cheers, Mathieu Le mercredi 03 juin 2009 à 00:44 +0200, Kynn Jones a écrit : I'm in the process of coding a parser (in C) to

[Rd] How to generate R objects in C?

2009-06-02 Thread Kynn Jones
I'm in the process of coding a parser (in C) to generate R entities (vectors, lists, etc.) from a text description (different from R). The basic parser works, and now I need to tell it how to create R entities. I need to be able to create character vectors (for unicode strings), integers, floats,