[R] Printing to file from C

From: Donatello Telesca <telesca_at_stat.washington.edu>
Date: Sat 03 Dec 2005 - 09:09:01 EST


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", ... );

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

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Dec 03 11:01:21 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:28 EST