[R] R equiv of #ifdef?
wsimpson at gcal.ac.uk
Mon Jun 7 12:09:46 CEST 1999
I was wondering if R has an equivalent of #ifdef.
I want the code to check if a function has been sourced in yet, and if
not, then source it in. (I know of replace(), which works for
Here is what I have come up with.
junk.r contains the code for function thingy2().
This doesn't work: "missing value where logical needed"
The error message puzzles me.
Thanks very much for any help.
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