krlmlr / r-appveyor

Tools for using R with AppVeyor (https://appveyor.com)
132 stars 60 forks source link

source versions of packages no longer installed? #159

Closed IndrajeetPatil closed 4 years ago

IndrajeetPatil commented 5 years ago

I pushed this commit and only AppVeyor (but not Travis) builds are failing because I increased dplyr version from 0.8.2 to 0.8.3-

* checking package namespace information ... OK
* checking package dependencies ... ERROR
Package required and available but unsuitable version: 'dplyr'
See section 'The DESCRIPTION file' in the 'Writing R Extensions'
manual.
* DONE
Status: 1 ERROR, 1 NOTE
See
  'C:/projects/ggstatsplot/ggstatsplot.Rcheck/00check.log'
for details.
Command exited with code 1
7z a failure.zip *.Rcheck\*

Is this because the new changes made no longer make it possible to download the source versions of R packages, like before?

image

krlmlr commented 5 years ago

It's very likely. Set PKGTYPE to both if you need the latest and greatest.

We've moved away from setting requirements to the most recent package versions, and try to import the minimum really required versions. See https://github.com/krlmlr/minver/ for a workflow to find out which versions your package really needs.

IndrajeetPatil commented 5 years ago

Thanks, that solved it.

IndrajeetPatil commented 5 years ago

@krlmlr Why do my builds fail even when I have set PKGTYPE to both?

https://github.com/IndrajeetPatil/ggstatsplot/blob/e0f2c2d3963e4b66dd49f85a5233122c8505b7e1/appveyor.yml#L19-L39

For example, this build fails because Rcpp's source version can't be downloaded-

* installing *source* package 'rcompanion' ...
** package 'rcompanion' successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  there is no package called 'Rcpp'
Calls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
ERROR: lazy loading failed for package 'rcompanion'
* removing 'c:/RLibrary/rcompanion'
Error in i.p(...) : 
  (converted from warning) installation of package 'rcompanion' had non-zero exit status
Calls: <Anonymous> ... with_rprofile_user -> with_envvar -> force -> force -> i.p
Execution halted
Command exited with code 1
7z a failure.zip *.Rcheck\*