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

From: Renaud Lancelot <renaud.lancelot_at_cirad.fr>
Date: Sun 11 Jul 2004 - 17:13:52 EST

I do agree with you: in my opinion, creating a package is not a general solution when you just want to save the script of a whole data analysis for the purpose of, say, a paper or a report.

To meet this goal, I save the script in a text file and I use a text editor with sourcing facilities (e.g. WinEdt + R-WinEdt, Xemacs + ESS,...: see Software ==> Other section on CRAN).

See recent threads on this topic, e.g.
http://tolstoy.newcastle.edu.au/R/help/04/07/0195.html

Best,

Renaud

Shin, Daehyok wrote:
> Considering replies to my question, typical practices of R users seem:
> 1. Creating a special function to source frequently used scripts.
> 2. Creating a personal package containing frequently used scripts.

>
> Both of them needs additional steps to edit the function or to
> create/install the package
> when a script file is edited or added. My suggestion can save the effort.

> In the sense to make R more convenient environment to users, is it trivial?
>
> Daehyok Shin
>
>

>>-----Original Message-----
>>From: Roger D. Peng [mailto:rpeng@jhsph.edu]
>>Sent: Saturday, July 10, 2004 PM 11:14
>>To: sdhyok@email.unc.edu
>>Cc: Liaw, Andy; R, Help
>>Subject: Re: [R] where does R search when source()?
>>
>>
>>In fact, there is an elegant solution, and that is to write a
>>package.  If this is all for personal use, then writing a package
>>can be as simple as creating a few directories, copying the
>>script files, and then running R CMD INSTALL.  I do this all the
>>time when I have multiple projects that use the same code.
>>
>>-roger
>>

>
>
> ______________________________________________
> 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
>
-- 
Dr Renaud Lancelot, vétérinaire
C/0 Ambassade de France - SCAC
BP 834 Antananarivo 101 - Madagascar

e-mail: renaud.lancelot@cirad.fr
tel.:   +261 32 04 824 55 (cell)
         +261 20 22 665 36 ext. 225 (work)
         +261 20 22 494 37 (home)

______________________________________________
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 17:23:01 2004

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