A simple approach would be to start a fresh R session and source your
function.
Then save that workspace as, e.g., myFuncs.RData.

In future sessions all you have to do is
attach("myFuncs.Rdata") 

and your functions will be available for you to use.
-Christos

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Douglas M. 
> Hultstrand
> Sent: Thursday, October 30, 2008 1:45 PM
> To: r-help@r-project.org
> Subject: [R] Save a function existing library
> 
> Hello all,
> 
> I am fairly new to R and I have created a function that I use 
> quit frequently.  I was wondering if there is away to save 
> this function in an existing library so I can call it by 
> using the function name once the library is loaded?
> 
> Thanks,
> Doug
> 
> --
> ---------------------------------
> Douglas M. Hultstrand, MS
> Senior Hydrometeorologist
> Metstat, Inc. Windsor, Colorado
> voice: 970.686.1253
> email: [EMAIL PROTECTED]
> web: http://www.metstat.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
> and provide commented, minimal, self-contained, reproducible code.
> 
>

______________________________________________
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
and provide commented, minimal, self-contained, reproducible code.

Reply via email to