From romain.francois at dbmail.com  Fri Aug 20 10:43:53 2010
From: romain.francois at dbmail.com (Romain Francois)
Date: Fri, 20 Aug 2010 10:43:53 +0200
Subject: [Rd] C or Java code generation
In-Reply-To: <4C6E3DA0.7010005@yandex.ru>
References: <4C6CF35F.9040305@yandex.ru>	<AANLkTimDKD058Z+UQK2Z8EucsVsbE-T+dRe2h5EG-HYc@mail.gmail.com>	<4C6CFD45.7050007@yandex.ru>	<AANLkTikMyRzcDHtCSb9f31v5wnN+FLrbQXAwRDg7ui1E@mail.gmail.com>	<4C6D0BC2.7070906@yandex.ru>	<AANLkTi=X-NfgGf3czS9t4LwUKBrUne7=1r+BO7soacEM@mail.gmail.com>	<19565.13345.692185.626415@max.nulle.part>	<4C6D3A53.5070808@yandex.ru>	<19565.21908.102685.183781@max.nulle.part>
	<4C6E3DA0.7010005@yandex.ru>
Message-ID: <4C6E4049.4090800@dbmail.com>


Le 20/08/10 10:32, Vyacheslav Karamov a ?crit :
> 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.

Hi,

It installs just like any other R package, there is no need for a Makefile.

$ R CMD RInside_0.2.3.tar.gz

or from R:

 > install.packages( "RInside" )

We usually encourage people to use the Rcpp-devel mailing list for 
questions about RInside :
http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Romain

-- 
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://bit.ly/bzoWrs : Rcpp svn revision 2000
|- http://bit.ly/b8VNE2 : Rcpp at LondonR, oct 5th
`- http://bit.ly/aAyra4 : highlight 0.2-2



[Rd] C or Java code generation
Romain Francois