I believe I have followed the instructions in the R Packages book.
I have a lookup table that I want to serve as internal data in my package. One of the package functions needs it. But I don't need or want it to be user-visible or exported.
I have put the data generation script in a file in
data-raw, and I have used
usethis::use_data to install the data in
use_data(lookup, internal = TRUE, overwrite = TRUE)
However when I call the function that needs
lookup I get the error
object 'lookup' not found
I'm confused as to why the data is not being loaded so that it is internally accessible to the package. Please can anyone suggest what I am doing wrong? There is no extra step mentioned in the R Packages book that would be needed to make the data accessible. It worked fine when I had the same lookup previously as exported data, but it ought to be internal really.
LazyData: true in the DESCRIPTION file.