library/data

Paul Gilbert pgilbert@bank-banque-canada.ca
Wed, 17 Dec 1997 11:05:16 -0500


I have some data files with my library which are used for examples and testing
the code. To date I have kept them in a subdirectory I called ../dse/dsedata,
but I am trying to move those to .../dse/data as perscribed for installing
libraries. However, these datasets are not all R object, some are just files
that I source from within a function, and one is accessed by a separate process
that I call from R.

1/ Should the data subdirectory be reserved for R objects?

2/ Could someone explain or point me to were I can find the explanation of how R
objects in this data subdirectory should be constructed? Are these objects
automatically loaded when a library is loaded?

3/ To date I have been able to find my subdirectory by setting a variable
indicating its location in the library file from which code is loaded.
Admittedly this was a kludge, but I could do it because I had my own make which
embedded the location in the file when it was installed. I was not very happy
with this trick, but it seems I completely lose this ability using R INSTALL.
>From within R is there a good way to find the location of a library when it is
loaded or after it is loaded?

Paul Gilbert

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._