[Rd] Accesing R c-code

2006-09-28 Thread Patricia Bautista Otero
Hi r-devel, I am working on a R extension. My package is writen on C++ and in my code I require a R function object. I received the R function object, then a point x in which the "function" is going to be evaluated is generated in some way, then I evalue the "function" at x and I repete this pr

[Rd] eval(SEXP fn,SEXP rho) in C++ code

2006-09-27 Thread Patricia Bautista
Hi r-devel, I am working on a R extension. I am writing the function in C++, and in my function it is required a R function object from the user. This R function object will be evaluated thousand of times in my C++ code. I generated the shared library and I loaded it on R. I did several experimen

[Rd] Evaluating R expresions from C

2006-09-14 Thread Patricia Bautista
Good afternood everybody, I have a question about using "Rinternals.h": If I need to evaluate a R expresion from my c++ code Do I have to change my c++ code enterelly?, I'm thinking about the way I allocate memory and the way I print for example. Thanks for any help in advance. Patricia

[Rd] Complete documentation gram.y ??

2006-09-08 Thread Patricia Bautista
Hi everybody, Does anybody know where I can find documentation about file gram.y?. What I need to do is related to the parse tree. I need the parse tree of a R user defined function for being used by a c++ function. Briefly, I have a C++ function that is used to generate random numbers from a spe