Re: [Rd] Dealing with printf() &c. in third-party library code

2012-03-16 Thread Jon Clayden
On 16 March 2012 00:48, Martin Morgan wrote: > On 03/15/2012 02:24 PM, Jon Clayden wrote: >> >> Martin, >> >> Thanks for your reply. I wonder if you'd be willing to post your >> "my_fprintf" function, since I'm struggling to get around needing to >> use the "stdout" and "stderr" symbols completely

Re: [Rd] Dealing with printf() &c. in third-party library code

2012-03-15 Thread Martin Morgan
On 03/15/2012 02:24 PM, Jon Clayden wrote: Martin, Thanks for your reply. I wonder if you'd be willing to post your "my_fprintf" function, since I'm struggling to get around needing to use the "stdout" and "stderr" symbols completely. This function has the right effect... void rniftyreg_fprintf

Re: [Rd] Dealing with printf() &c. in third-party library code

2012-03-15 Thread Jon Clayden
Martin, Thanks for your reply. I wonder if you'd be willing to post your "my_fprintf" function, since I'm struggling to get around needing to use the "stdout" and "stderr" symbols completely. This function has the right effect... void rniftyreg_fprintf (FILE *stream, const char *format, ...) {

Re: [Rd] Dealing with printf() &c. in third-party library code

2012-03-14 Thread Martin Morgan
On 03/14/2012 05:15 AM, Jon Clayden wrote: Dear all, I recognise the reason for strongly discouraging use of printf() and similar C functions in R packages, but I wonder what people do in practice about third-party code which may be littered with such calls. I maintain a package (RNiftyReg) whic

[Rd] Dealing with printf() &c. in third-party library code

2012-03-14 Thread Jon Clayden
Dear all, I recognise the reason for strongly discouraging use of printf() and similar C functions in R packages, but I wonder what people do in practice about third-party code which may be littered with such calls. I maintain a package (RNiftyReg) which provides an R interface to a third-party li