I am working on an R package that I would like to submit to CRAN and have had issues with the size of the data, therefore I moved it into the extdata/data folder in order to use in my examples but I am getting fatal errors that are not allowing my package to pass the checks.
I've tried a few different solutions (i.e. system.file()
& load(system.file()))
which have not worked. The files are RData files.
#' load(system.file("extdata", "trueLabels.RData", package = "DWLS"))
&
#' system.file("extdata", "trueLabels.RData", package = "DWLS")
How can I use the data in the extdata/data folder in my @examples of the functions without encountering build errors?