Skip to content
Prev 45753 / 63424 Next

Verbose output from R CMD check

Peter's longshot hit the bull's eye, this was the offending line

foobar.c:  if (*smoothOrStochastic==0) Rprintf("0\n"); else (printf("1\n"));

So I clearly need to brush up a little on regular expressions. The 
mistake is the scripting was that I used this

find . -maxdepth 1 -type f -name '*.c' -exec sed -i 's\printf\Rprintf\'{} \;
find . -maxdepth 1 -type f -name '*.c' -exec sed -i 's\fRprintf\fprintf\' {} \;

and not this

find . -maxdepth 1 -type f -name '*.c' -exec sed -i 's\printf\Rprintf\g'{} \;
find . -maxdepth 1 -type f -name '*.c' -exec sed -i 's\fRprintf\fprintf\g' {} \;

Many thanks Simon, Peter and Martin for your suggestions, R CMD check 
now runs clean :-)
David