Re: R-beta: packages/libraries vs sourcing it in

Paul Gilbert (pgilbert@bank-banque-canada.ca)
Fri, 16 Jan 1998 14:41:26 -0500


Message-Id: <98Jan16.144730est.13535@mailgate.bank-banque-canada.ca>
Date: Fri, 16 Jan 1998 14:41:26 -0500
From: Paul Gilbert <pgilbert@bank-banque-canada.ca>
To: Bill Simpson <wsimpson@uwinnipeg.ca>
Subject: Re: R-beta: packages/libraries vs sourcing it in

If you are actually working on the code you may find sourcing is more convenient
than a package/library. Once the code is stable then putting it in a library has
a few advantages, especially if there are a large number of functions and others
are using them too:

 - ls() doesn't show functions in the library (so it is easier to see the stuff
you are working on.

-You shouldn't get multiple copies of the library functions in your .Rdata
files.

-If you fix something in the library then it is fixed wherever you or anyone
else uses it. If you are sourcing it then you have not fixed copies saved in
..RData files. [ Note: If you break something in the library then it is broken
wherever you or anyone else uses it.]

Paul Gilbert

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._