[R] how to keep functions while remove all other commands

Petr Pikal petr.pikal at precheza.cz
Mon Jan 26 10:32:04 CET 2004


Hi

On 24 Jan 2004 at 21:47, Yong Wang wrote:

> Dear all:
> a quick question:
> I am used to apply  rm(list=()) regularly to remove all old codes in
> preventing them creeping in current analysis.however, with that
> application, functions I wrote are also removed. please let me know
> how to keep the thing you want while remove those you don't.

I usually work in some separate home directory (e.g. D:\data\stat\standard) and I 
store my functions I want to keep in another directory 
(D:\prog\R\......\library\fun), which can be attached as any other library in the 
same way like other libraries can. You just have to use some files (I think at least 
INDEX and DESCRIPTION).

More in "R-exts" manual.

Cheers
Petr

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

Petr Pikal
petr.pikal at precheza.cz




More information about the R-help mailing list