Re: [Rcpp-devel] What is the "correct" way to print text to R with Rcpp?

2011-10-17 Thread Tim Jurka
Hi Slava, One way to do it is to use Rprintf() the same way you'd use the standard printf() command. Best, Tim On Oct 17, 2011, at 10:52 PM, Slava Razbash wrote: > Hello, > > What is the "correct" way to print text to R with Rcpp? I find that > "std::cout<<" will only work if i running R from

[Rcpp-devel] What is the "correct" way to print text to R with Rcpp?

2011-10-17 Thread Slava Razbash
Hello, What is the "correct" way to print text to R with Rcpp? I find that "std::cout<<" will only work if i running R from a console. I am using winXP. Best Regards, Slava ___ Rcpp-devel mailing list [email protected] https://list

Re: [Rcpp-devel] Fwd: Request for help with compiling Rcpp example

2011-10-17 Thread Davor Cubranic
On October 17, 2011 02:34:27 PM Dirk Eddelbuettel wrote: > If none of this is any help, please try respecifying your question. I am a > little unclear what "call back the R commands in 'cxxfunction'" is asking > about. This sounds to me like using Rcpp::Function. Davor __

Re: [Rcpp-devel] Issue Installing Rcpp on Solaris

2011-10-17 Thread Tim Jurka
Hi Dirk, Coincidentally, my inquiry was prompted by Prof Ripley who was adamant that Rcpp clears R CMD CHECK for solaris-sparc; I personally do not use Solaris. Thank you for pointing out the test in debugging.cpp, I hadn't noticed that. I'll try out the fix to see if I can successfully install

Re: [Rcpp-devel] Fwd: Request for help with compiling Rcpp example

2011-10-17 Thread Dirk Eddelbuettel
Jian, On 14 October 2011 at 20:52, Jian Kang wrote: | | Hi, Dirk, | | | | Sorry to disturb you again. | | | | Actually, I am also very interested in how to call back the R commands in | | 'cxxfunction'. Do you have some examples or tutorial about this?   Are you aware that you can do 'help("cxxf

Re: [Rcpp-devel] Issue Installing Rcpp on Solaris

2011-10-17 Thread Dirk Eddelbuettel
Hi Tim, On 17 October 2011 at 13:39, Tim Jurka wrote: | Hi Rcpp-devel, | | When installing Rcpp on Solaris ( R2.13.1 Platform: i386-pc-solaris2.10 (32-bit) ) using install.packages, I get the following error: | | g++ -I/usr/local/lib/R/include -I../inst/include/ -I/usr/local/include -fpic

[Rcpp-devel] Issue Installing Rcpp on Solaris

2011-10-17 Thread Tim Jurka
Hi Rcpp-devel, When installing Rcpp on Solaris ( R2.13.1 Platform: i386-pc-solaris2.10 (32-bit) ) using install.packages, I get the following error: g++ -I/usr/local/lib/R/include -I../inst/include/ -I/usr/local/include-fpic -g -O2 -c debugging.cpp -o debugging.o debugging.cpp:36:22: execi