[R] function not found

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


Hi,

I have a R script with a funcion in it. When I run
this
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?

Thanks,
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. 
http://personal.mail.yahoo.com/
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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