After reading questions like this SO question for documenting a dataset with Roxygen , I managed to document the dataset (which I will call cells ), and now it appears in the list generated by data(package="mypackage") , and loads if I run the data(cells) command. After that, cells will appear when ls() run.
However, in many packages, data is immediately available without calling data() . Also, data names are not displayed when ls() run. An example is the baseball dataset that comes with plyr . I looked at the source for plyr and I do not see how this is done.
seancarmody
source share