Re: [R] How can I call a function from within another funcion?

From: Uwe Ligges <>
Date: Fri 05 May 2006 - 19:19:49 EST

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
> ---------------------------------
> [[alternative HTML version deleted]]
> ______________________________________________
> mailing list
> PLEASE do read the posting guide! mailing list PLEASE do read the posting guide! Received on Fri May 05 19:29:30 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 05 May 2006 - 20:10:05 EST.

Mailing list information is available at Please read the posting guide before posting to the list.