R-beta: packages/libraries vs sourcing it in

Paul Gilbert pgilbert at bank-banque-canada.ca
Fri Jan 16 20:41:26 CET 1998

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

-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 at stat.math.ethz.ch

More information about the R-help mailing list