[R] Console/command line output

Martin Maechler maechler at stat.math.ethz.ch
Tue Mar 30 14:44:12 CEST 2004


>>>>> "Ingmar" == Ingmar Visser <i.visser at uva.nl>
>>>>>     on Tue, 30 Mar 2004 14:36:59 +0200 writes:

    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




More information about the R-help mailing list