Skip to content

[R-pkg-devel] Puzzling error from win-builder

2 messages · Jonathan Gilligan, Ben Bolker

#
I have a puzzling error from win-builder for a package.

My package is https://github.com/jonathan-g/datafsm, also 
https://cran.r-project.org/web/packages/datafsm. I am preparing a 
bug-fix release to CRAN to fix an error that CRAN recently identified in 
the previous release of this package (see 
https://cran.r-project.org/web/checks/check_results_datafsm.html).

The package passes R CMD check with no errors or warnings, and one note 
(harmless) on win-builder for R-devel 
(https://win-builder.r-project.org/8mp9LN00YVw4/00check.log) and 
R-oldrelease 
(https://win-builder.r-project.org/1K21X458WtYt/00check.log), but for 
R-release, win-builder has two errors in running tests and building a 
vignette (https://win-builder.r-project.org/exK86Fkyir2s/00check.log), 
all of which say the CRAN caret package is not available for Windows x64:
My package declares the "caret" package as an import in DESCRIPTION, so 
I am puzzled what this error from win-builder means and how to fix it. 
If R CMD check got this far, and installed the package for testing 
without reporting missing dependencies, why is it suddenly unable to use 
the caret package for testing the package, but only for the x64 
architecture? Is this something I am doing wrong, or is it a bug in 
win-builder?

Is anyone else finding problems with win-builder reporting errors about 
CRAN packages not being available?

For what it's worth, the package passes R CMD check with no errors or 
warnings or notes under GitHub actions (Windows, MacOS, and Ubuntu), on 
rhub (Debian, Fedora, Ubuntu, MacOS, and Windows except for R-devel 
under Windows, where R CMD check fails with a message about BioConductor 
not having binaries for R 4.2, even though my package doesn't use any 
BioConductor packages), and on my local Windows and Ubuntu boxes, so 
this seems to be a problem specific to R-release under win-builder.

If anyone has any suggestions for how I can fix this problem and submit 
the new release of my package to CRAN, I would be grateful.
#
Without thinking about it very much, my first guess would be that 
this is a transient problem on win-builder, i.e. the caret package is 
temporarily unavailable for some reason (e.g. because some update step 
hung); a new version of the package was published *fairly* recently 
(2021-05-15), although I would find my explanation more compelling if 
the update was more recent (and if the CRAN page for caret wasn't 
showing that the Windows binaries have all been updated to the current 
version).

   As a hackish way to explore this further, you could find a different 
CRAN package that depends on caret, edit the DESCRIPTION file to 
substitute your e-mail address as maintainer, and submit it to 
win-builder (if you don't edit the DESCRIPTION then the package 
maintainer, not you, will get the e-mail saying that the build is done; 
I don't know if this is allowed by win-builder rules but even if not it 
seems like a minor transgression).
On 5/26/21 5:12 PM, Jonathan Gilligan wrote: