Skip to content

Console/command line output

2 messages · Ingmar Visser, Martin Maechler

#
Hi all,
I am working on Macos x 10.3 (Panther) to build a package consisting of
C/C++ code that is called from R. In the C/C++-sources I use  several
commands to print info to the console:

std::cout << "info" << endl;

and: 

Rprintf("info\n");

Both work fine when R is run on the command line but neither works when
running Raqau (I did check the preference boxes for console and error output
to be written to the console).

Can anyone confirm this behavior of Raqua?
Any suggestions welcome,
Ingmar

platform powerpc-apple-darwin6.8
arch     powerpc   
os       darwin6.8 
system   powerpc, darwin6.8
status             
major    1         
minor    8.1       
year     2003      
month    11        
day      21        
language R
#
Ingmar> Hi all, I am working on Macos x 10.3 (Panther) to
    Ingmar> build a package consisting of C/C++ code that is
    Ingmar> called from R. In the C/C++-sources I use several
    Ingmar> commands to print info to the console:

    Ingmar> std::cout << "info" << endl;

    Ingmar> and:

    Ingmar> Rprintf("info\n");

    Ingmar> Both work fine when R is run on the command line but
    Ingmar> neither works when running Raqau (I did check the
    Ingmar> preference boxes for console and error output to be
    Ingmar> written to the console).

Only the Rprintf() one is supposed to work `in all
circumstances';
if it doesn't work in Raqua (sic!  "aqua" is Latin for "water"),
that's a bug in at least one part of your computer environment.

    Ingmar> Can anyone confirm this behavior of Raqua?  Any
    Ingmar> suggestions welcome, Ingmar

    Ingmar> platform powerpc-apple-darwin6.8 arch powerpc os
    Ingmar> darwin6.8 system powerpc, darwin6.8 status major 1
    Ingmar> minor 8.1 year 2003 month 11 day 21 language R