Re: [R] Embed R code in C++

2010-03-23 Thread Romain Francois
Le 23/03/10 13:34, mans a écrit : No, I didnt install Rcpp but i have R 2.10.1 already installed. If you want to use RInside, you need Rcpp. This is what dependencies are for. you can install Rcpp from R : install.packages( "Rcpp" ) What's the difference with Rinside and Rcpp? Rcpp defin

Re: [R] Embed R code in C++

2010-03-23 Thread mans
No, I didnt install Rcpp but i have R 2.10.1 already installed. What's the difference with Rinside and Rcpp? Do i need both to embed R code in C++ file or just one of them ? Could you tell me where can i get Rcpp pkg? How can i Install it because i dont know how to compile a source file on the t

Re: [R] Embed R code in C++

2010-03-22 Thread Sharpie
mans wrote: > > Hi thanks for your help but > > I tried to install the pakage but i have got a installing error: > > {SNIP} > > I do not understand what's going on to be honest. > Anyone can help me? > When debugging, it's usually a good idea to start with the first error: Error in loadN

Re: [R] Embed R code in C++

2010-03-22 Thread mans
Hi thanks for your help but I tried to install the pakage but i have got a installing error: nstalling to library ‘/Library/Frameworks/R.framework/Resources/library’ * installing *source* package ‘RInside’ ... ** libs ** arch - x86_64 Error in loadNamespace(name) : there is no package called 'Rc

Re: [R] Embed R code in C++

2010-03-22 Thread Romain Francois
Hello, I don't know specifics of Xcode, etc ... it looks nice but I have not used it myself yet. There seems to be issues on OSX with the current released version of RInside (we will release 0.2.2 soon), so I would suggest you download and install the next version of RInside from r-forge:

Re: [R] Embed R code in C++

2010-03-22 Thread Sharpie
mans wrote: > > Hi, > Can anyone tell me how to embed R code in a C++ file. > > I am actually using a mac running on the OSX 10.6.2 and the IDE Xcode > Version 3.2 and I would like to embed the basic function like geometric, > binomial, normal and hyper geometric distributions in a sample cp

[R] Embed R code in C++

2010-03-22 Thread mans
Hi, Can anyone tell me how to embed R code in a C++ file. I am actually using a mac running on the OSX 10.6.2 and the IDE Xcode Version 3.2 and I would like to embed the basic function like geometric, binomial, normal and hyper geometric distributions in a sample cpp file. I heard about the l