[R-pkg-devel] data files not found in package checks

Ulrike Grömping u|r|ke@groemp|ng @end|ng |rom bht-ber||n@de
Fri Jun 27 00:41:17 CEST 2025


Dear package developers,

I likely miss something silly, but I fail to find the root cause. I used 
to have my package data in sysdata.rda, even though I exported some of 
them for the users' direct use. With my new package CAs, I now want to 
move those files that are meant both for user information and for the 
inner workings of the package to the data/ folder, and I use "LazyData: 
true" in the description. The files are in the data folder as single rda 
files, and their documentation R files are in the R folder.

Unfortunately, I do not know how to make the data visible during the 
checks. The checks keep throwing notes "no visible binding for global 
variable ...", and the examples fail, because the data from the folder 
data are not found. This happens regardless whether --as-cran is active 
or not.

However, the package installs OK, the help files for the data objects 
are there, and the example code that failed the checks runs without 
problems. I have made sure that the objects from the data folder were 
not in the workspace prior to loading the package, i.e., the installed 
package appears to have them available. I have also installed the 
package before running the checks, without success. Perhaps I should 
also mention that I am on Windows, and (still) use R 4.3.0, though I do 
not expect that to be the root cause for the problem.

Does someone have pointers how I can make the checks find the data files?

Best, Ulrike

-- 
##############################################
## Prof. Ulrike Groemping
## FB II
## BHT
##############################################
## prof.bht-berlin.de/groemping
## Phone: +49(0)30 4504 5127
## Fax:   +49(0)30 4504 66 5127
## Home office: +49(0)30 394 04 863
##############################################



More information about the R-package-devel mailing list