Re: [R] I can´t run the example shown in the inline pa ckage

2010-04-10 Thread Uwe Ligges
On 09.04.2010 17:43, satu wrote: Dear Romain, you are right. Apologies, here is the complete result from your script: code<- '#include\nSEXP f(){\n return R_NilValue ; }' writeLines( code, "test.c" ) system( "R CMD SHLIB test.c" ) gcc -I"C:/R/R-210~1.1/include"-O3 -Wall -std=gnu

Re: [R] I can´t run the example shown in the inline pa ckage

2010-04-09 Thread satu
Dear Romain, you are right. Apologies, here is the complete result from your script: > code <- '#include \nSEXP f(){\n return R_NilValue ; }' > writeLines( code, "test.c" ) > system( "R CMD SHLIB test.c" ) gcc -I"C:/R/R-210~1.1/include"-O3 -Wall -std=gnu99 -c test.c -o test.o gcc -sh

Re: [R] I can´t run the example shown in the inline pa ckage

2010-04-09 Thread Romain Francois
What happened to the line that contained "R CMD SHLIB" ? This is the bit that compiles the code. On windows (you were asked to tell us that you are running windows, both through the posting guide and from my previous email) you need to install the same tools that one needs for building a packa

[R] I can´t run the example shown in the inline pa ckage

2010-04-08 Thread satu
I want to run some R script using the inline package (which allows to create and run inline C++ code in my humble understanding). So, after loading the required packages and copy and paste the example that runs C code (in the Reference Manual as a PDF), I have a compilation error. Any body has eve