Providing multiple variables as data in a package

I have 4 changing data frames, depending on the experiment I'm working on, and I wand to provide some sample experiments along with my package, but I'm not sure how to add data to my package, as the manual says only one data frame for each data set.

For example, my 4 standard data frame are called pg, summary, peptidesand parameters. I saved them in one file .RData.

save(summary, parameters, pg, peptides, file='trible-label.RData')

I also created other data frames and saved the second data set using

save(summary, parameters, pg, peptides, file='double-label.RData')

I have moved these datasets to the folder of data/.my package and want to document them now, but since this is not only one data frame, I am not sure how this should work, or if this is the best way to do this.

I thought about putting everything into a list and using this list as a dataset, but all my examples use direct variables.

Is there a better solution?

+4
source share

Source: https://habr.com/ru/post/1598894/


All Articles