Re: [R] where does R search when source()?

From: Duncan Murdoch <dmurdoch_at_pair.com>
Date: Sun 11 Jul 2004 - 21:58:06 EST

On Sat, 10 Jul 2004 23:28:39 -0400, "Shin, Daehyok" <sdhyok@email.unc.edu> wrote:

>Considering replies to my question, typical practices of R users seem:
>1. Creating a special function to source frequently used scripts.

That's not right. The practice I was describing is to have frequently used code in a function, not in a script.

>2. Creating a personal package containing frequently used scripts.

And here it would be frequently used *functions*.
>
>Both of them needs additional steps to edit the function or to
>create/install the package
>when a script file is edited or added.

There's no additional step. You write the function and use it.

Duncan Murdoch



R-help@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 Received on Sun Jul 11 22:07:43 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 02:35:33 EST