[R] Re: R package-building

Duncan Murdoch dmurdoch at pair.com
Thu Jan 10 13:32:24 CET 2002


>The problem is this: How should one address the (ASCII) data files so that
>the examples find them? I have read through the "Writing R Extensions"
>document and still have a problem.

Take a look at how other packages do it, e.g. modreg has a dataset
named "rock" stored in rock.tab in the data subdirectory.  The R
extensions manual describes the format in the "Package Subdirectories"
section.  To use datasets stored there, just do something like

  data(rock)

Duncan Murdoch
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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