[R] code to turn T into TRUE

Mark.Bravington@csiro.au Mark.Bravington at csiro.au
Fri Oct 18 05:58:04 CEST 2002

Does anyone have code that will methodically process R sourcecode, turning
T's into TRUE and F's into FALSE? I got bored doing this by hand, after the
first 30-odd functions-- there are hundreds left to do. I don't want to
simply deparse everything, because that would destroy my beautiful

The reason it's not trivial, is that comment lines, quotes, and split lines
need to be kept track of. There are no syntax errors in the code (i.e. it
all parses OK into functions).

The absolute ideal would be if the code itself was in R (because I need to
run this from R), but presumably if there was a Perl script, I could launch
that from within R too.

FWIW I'm running Windows 2000, and hovering between R1.5.1 and R1.6.0.

Thanks for any help



Mark Bravington
PO Box 1538
Castray Esplanade
TAS 7001

phone (61) 3 6232 5118
fax (61) 3 6232 5012
Mark.Bravington at csiro.au 
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list