I'm building my own R package and I have a reference data frame that needs to be accessed by the program. It's not very large and would require a user supplied string to search for the appropriate data.
Essentially, I have an .Rdata file with 1 data frame. I have stored the file in the /Rpackage_name/data/ directory of the package folder.
I would like for the package to load the data OR have access to its contents. This is what is confusing me.
What am I doing wrong?
GenericPackageName <- function () {
#data("GenericPackageName") did not work
}