Thanks, Georgi! However, with LazyData, data() should not be needed, and
I wouldn't know where to place it.
I now found the root cause, and it was very basic: I still had a
namespace (CAs::...) reference to one of the data files in an example,
and this - of course, because of LazyData instead of exporting - wasn't
found, which made the check fail.
Best, Ulrike
Am 27.06.2025 um 07:42 schrieb Georgi Boshnakov:
You can use data() to make datasets available in checks. Same for
examples.
Georgi Boshnakov
Sent from Outlook for Android <https://aka.ms/AAb9ysg>
------------------------------------------------------------------------
*From:* R-package-devel <r-package-devel-boun...@r-project.org> on
behalf of Ulrike Grömping <ulrike.groemp...@bht-berlin.de>
*Sent:* Friday, June 27, 2025 1:41:17 AM
*To:* r-package-devel@r-project.org <r-package-devel@r-project.org>
*Subject:* [R-pkg-devel] data files not found in package checks
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
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
##############################################
______________________________________________
R-package-devel@r-project.org mailing list
https://urldefense.com/v3/__https://stat.ethz.ch/mailman/listinfo/r-package-devel__;!!PDiH4ENfjr2_Jw!GA4ZDCmEmA5XbZzcJ761bsIJdUNk7S7TK_yYzTK0WxBwuNTw56nQT1xb3rtNfMEjVpLyVD8yYXuAYZov10XLYldRjLky9vs4pPDxahWrR3ddxko$[stat[.]ethz[.]ch]
--
##############################################
## 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
##############################################
______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel