Skip to content
Prev 155760 / 398503 Next

How to load functions in R

Hello,
It seems that all methods work. 
Source() however loads only the last function. with save(a,b,file="path") i can save more than 1 function. 
Thanks a lot,

Mihai
-----Urspr?ngliche Nachricht-----
Von: Yihui Xie [mailto:xieyihui at gmail.com] 
Gesendet: Donnerstag, 11. September 2008 16:48
An: a.ramasamy at imperial.ac.uk
Cc: Mirauta, Mihai; r-help at r-project.org
Betreff: Re: [R] How to load functions in R

We may just read them in the R console instead of an external editor, and "fix()" or "edit()" them when we need to make any modifications. A trivial advantage of saving them as an image file in Windows is that you can double-click the file and R will be started with these objects loaded automatically. Anyway, to save the functions as ASCII files or even write a package are also good solutions :-)

Regards,
Yihui
On Thu, Sep 11, 2008 at 10:34 PM, Adaikalavan Ramasamy <a.ramasamy at imperial.ac.uk> wrote:
--
Yihui Xie <xieyihui at gmail.com>
Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086
Mobile: +86-15810805877
Homepage: http://www.yihui.name
School of Statistics, Room 1037, Mingde Main Building, Renmin University of China, Beijing, 100872, China