[R] C++ and R

2012-06-29 Thread Frederico Mestre
Hello: I have some C++ code and I want to know if it is ok to load it into R using .Call. Also, what's the difference between using Rdefines.h or Rinternals.h headers? It is just in the used macros? I've been reading "Writing R Extensions" but I'm a bit confused. Thanks, Frederi

Re: [R] C# and R

2008-06-13 Thread Prof Brian Ripley
This is about Windows, C# and R-(D)COM. The latter has its own list which would be much more appropriate. See http://sunsite.univie.ac.at/rcom/ (Linked from CRAN->Software->Other.) On Fri, 13 Jun 2008, Neil Gupta wrote: Hello R-Users, I came across this link on CodeProject.com and was wonde

[R] C# and R

2008-06-13 Thread Neil Gupta
Hello R-Users, I came across this link on CodeProject.com and was wondering, if anyone has implemented this and the benefits of doing so. This may also be of some help for others. Here is a link to the project: http://www.codeproject.com/KB/cs/RtoCSharp.aspx Regards, Neil Gupta [[altern

Re: [R] C++ and R interface

2007-11-06 Thread Deepankar Basu
Thanks for the help. On Tue, 2007-11-06 at 14:48 -0200, Alberto Monteiro wrote: > Deepankar Basu wrote: > > > > I am trying to do an ML estimation in R. My likelihood function has > > several nested loops and so it takes a lot of time (days when I use the > > genetic algorithm for optimization) f

Re: [R] C++ and R interface

2007-11-06 Thread Alberto Monteiro
Deepankar Basu wrote: > > I am trying to do an ML estimation in R. My likelihood function has > several nested loops and so it takes a lot of time (days when I use the > genetic algorithm for optimization) for the optimization to finish. > Unable to avoid loops, I am thinking of writing the likeli

Re: [R] C++ and R interface

2007-11-06 Thread Prof Brian Ripley
On Tue, 6 Nov 2007, Deepankar Basu wrote: > Hi All, > > I am trying to do an ML estimation in R. My likelihood function has > several nested loops and so it takes a lot of time (days when I use the > genetic algorithm for optimization) for the optimization to finish. > Unable to avoid loops, I am

Re: [R] C++ and R interface

2007-11-06 Thread Ingmar Visser
Yes, this can be done and the call is the same, however the C++ needs to be indicated as , see details in the writing R extensions manual. hth, Ingmar On 6 Nov 2007, at 17:05, Deepankar Basu wrote: > Hi All, > > I am trying to do an ML estimation in R. My likelihood function has > several neste

[R] C++ and R interface

2007-11-06 Thread Deepankar Basu
Hi All, I am trying to do an ML estimation in R. My likelihood function has several nested loops and so it takes a lot of time (days when I use the genetic algorithm for optimization) for the optimization to finish. Unable to avoid loops, I am thinking of writing the likelihood function in C++ and