Your driver file should probably look like:

# setup the parameters
.......
source('file1.r')
source('file.2.r')
...all the rest of your files



On Tue, Jun 23, 2009 at 3:05 PM, Derek Lacoursiere <Derek.Lacoursiere@ufv.ca
> wrote:

>
> Hi,
>
> How can I, from a single "driver" file, source other files in such a way
> that I can access their functions with parameters defined in my "driver"
> file?  I wish to do this to avoid creating a single, self-contained but
> clunky piece of code.  I have searched and found functions such as file(),
> pipe(), open(), found manuals on creating my own packages, etc. but I
> become
> increasingly aware that I don't know exactly what I am looking for (that I
> am a "neophyte").
>
> Help would be appreciated
>
> Derek
> --
> View this message in context:
> http://www.nabble.com/driver-file-tp24171201p24171201.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html<http://www.r-project.org/posting-guide.html>
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem that you are trying to solve?

	[[alternative HTML version deleted]]


