On 18 October 2011 at 16:52, Slava Razbash wrote:
| 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.

See the manual 'Writing R Extensions' which ships with R.  

Rcpp, as an extension to R, is governed by R's rules, and one of those is to
_not_ mix input/output streams.  So Tim is exactly correct in suggesting
Rprintf, upon which Jelmer's interesting looking solution is based to.

Dirk

-- 
"Outside of a dog, a book is a man's best friend. Inside of a dog, it is too
dark to read." -- Groucho Marx
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to