[R] function not found

Yu-Ling Wu yuling5 at yahoo.com
Wed Apr 11 00:26:15 CEST 2001


I have a R script with a funcion in it. When I run
script under R enviornment, it works fine. But if I go
to DOS command prompt and type "rterm --slave < foo.r"
it says:
         Error: couldn't find function "myFun"
         Execution halted

Below is part of my code. Does anyone know why?

Yu-Ling Wu

If (flag == 0) { do something... }
else { myFun() }

myFun <- function() {....statements.....}

Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
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