Skip to content
Prev 2330 / 21312 Next

[Bioc-devel] include data from non self-sufficient .R files

Hi,
On Tue, Oct 12, 2010 at 3:39 AM, Laurent Gatto <laurent.gatto at gmail.com> wrote:
I'm not sure that I follow (or that you follow :-), but what Sean is
suggesting is that you create the data yourself ... manually. Not by
some automated R script, and then you save() the data into an RData
file that you put into your package's /data directory.

Once the user installs the package, the data will come with the
package ("automatically"). The user can then load that data by using
the data() function calls, as you mentioned.

A call like:

R> data(myData1)

Would then work if you have an *.RData file called "myData1.RData" in
your packages /data folder.

See the help in ?data to get a more detailed overview of how data is
searched for and loaded.

Does that help?

-steve