[R] Printing to file from C

Donatello Telesca telesca at stat.washington.edu
Fri Dec 2 23:09:01 CET 2005


Hello,

I am interfacing R and C code using the function .Call.
Is there any way to print to file form C?
I.e. is there something analogous to:

  fopen(file1, "w");
  fprintf(file1, "%f", ... );
  fclose(file1);

which would not cause an error in the excution?

The Writing R Extension manual does not seem
to provide a lot of insights other than a vague reference
to an Rprintf() function.

Thanks for your help,

Donatello Telesca
UW Statistics




More information about the R-help mailing list