[Rd] cerr and cout not working calling c++ from R
Davor Cubranic
cubranic at stat.ubc.ca
Fri May 6 20:50:42 CEST 2011
On 2011-05-06, at 11:41 AM, Dirk Eddelbuettel wrote:
> | I¹m trying to call some of my c++ code from R and seem to be having an issue
> | with streams, although that¹s just one obvious sign of something different
> | in performance between calling the same function from main in c++ vs.
> | calling the same function from R. [...]
> In a nutshell, R 'owns' your console. That is part of the Faustian bargain.
But isn't he redirecting cout to a file, so the C++ output is not to the console?
Davor
More information about the R-devel
mailing list