[Rd] C or Java code generation

Vyacheslav Karamov ubuntulist at yandex.ru
Fri Aug 20 10:32:32 CEST 2010


Dirk Eddelbuettel пишет:
> No, what you describe in the next few hundred lines would _build the examples
> if the package is already installed_ 
>
> Also, building these examples (once you have the package is installed) does
> "Work For Me (TM)" in the sense that the compiles and linking steps succeed
> (WinXP, Rtools with gcc/g++ 4.2.x, R 2.11.0) yet it, as noted above, leads to
> a seg.fault which Romain and I have found neither time nor motivation to fix.
>
> You would be very welcome to help out -- our discussions around Rcpp and
> RInside take place on the rcpp-devel list off R-Forge.
>
>
> | 1) First I added R_HOME environment variable.
> | 2) Then modified c:\Program 
> | Files\R\R-2.11.1\library\RInside\examples\standard\Makefile.win by 
> | surrounding "$(R_HOME)/bin/R" with the quotation marks.
> | 3) And finally
> | C:\Program Files\R\R-2.11.1\library\RInside\examples\standard>make -f 
> | Makefile.win
> | g++ -Ic:/PROGRA~1/R/R-211~1.1/include 
> | -Ic:/PROGRA~1/R/R-211~1.1/library/Rcpp/include 
> | -I"c:/PROGRA~1/R/R-211~1.1/library/RInside/include" -O2 -Wall -Wall  -s  
> | rinside_callbacks0.cpp  -Lc:/PROGRA~1/R/R-211~1.1/bin -lR 
> | -Lc:/PROGRA~1/R/R-211~1.1/bin -lRblas -Lc:/PROGRA~1/R/R-211~1.1/bin 
> | -lRlapack "c:/PROGRA~1/R/R-211~1.1/library/RInside/lib/libRInside.a" 
> | c:/PROGRA~1/R/R-211~1.1/library/Rcpp/lib/libRcpp.a  -o rinside_callbacks0
> | c:/PROGRA~1/R/R-211~1.1/library/RInside/lib/libRInside.a(RInside.o):RInside.cpp:(.text+0x10b): 
> | undefined reference to `__gxx_personality_sj0'
>
> [ Hundreds of similar lines removed. ]
>
>
> Thanks, Dirk
>
>   
Hi all!

Could you help me to install Rinside in Ubuntu Jaunty?
I've installed R and Rcpp but I have no idea how to deal with Rinside.
I couldn't find any makefile.

WBR,
Vyacheslav.



More information about the R-devel mailing list