From cubranic at stat.ubc.ca  Fri May  6 20:50:42 2011
From: cubranic at stat.ubc.ca (Davor Cubranic)
Date: Fri, 6 May 2011 11:50:42 -0700
Subject: [Rd] cerr and cout not working calling c++ from R
In-Reply-To: <19908.16621.998499.588171@max.nulle.part>
References: <C9E9B44D.409E%sean.mcguffee@gmail.com>
	<19908.16621.998499.588171@max.nulle.part>
Message-ID: <36F4206A-461A-4159-91FB-92367B5FDB82@stat.ubc.ca>

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


[Rd] cerr and cout not working calling c++ from R
Davor Cubranic