dt Excellent wrote:

> I have a main function, say A, on C:/MYFILES.
>   Function A needs to call another function, say B, which resides on the 
> previous path. Gould anybody please tell me what command to use to do this?


Functions have to be defined in R.
Where corresponding files (containing code that defines functions) are 
located on the hard disc has nothing to do with the scoping rules.

If A needs B, B must be defined in A or some other environment in the 
search path.
This might be, for example, the .GlobalEnv or the same package A is 
from, as well as other attached packages or imported namespaces.

Uwe Ligges


>   Many thanks
> 
>               
> ---------------------------------
> 
> 
>  http://login.yahoo.com/config/mail?.intl=gr 
>       [[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to