RDataSets and TestImages are two packages that wrap datasets. Perhaps those
might be useful examples.
--Tim
On Friday, June 20, 2014 12:47:22 AM Tomas Krehlik wrote:
> Is there a way how to dynamically reference a file within given package? My
> problem is that I want to include some sample data and then reference them
> by some simple command. I was thinking that there might be something like
>
> packageData("nameOfPackage","filename")
>
> which would return the path to the file within data folder in some package.
> This value could then be wrapped within readcsv or something like that.