miniCRAN icon indicating copy to clipboard operation
miniCRAN copied to clipboard

miniCRAN::makeRepo downloads R-devel version of a package

Open contumax opened this issue 9 months ago • 1 comments

miniCRAN::makeRepo downloads R-devel version of a package instead of the stable release

miniCRAN::makeRepo("MASS", path="", repos="https://cran.rstudio.com/", type="source")

Downloads the "7.3-60.1" version of the MASS package (for R4.4.0) instead of "7.3-60" (for current R4.3.2).

The issue is with the miniCRAN:::pkgAvail function that calls available.packages:

utils::available.packages(contribUrl(repos, type = type, 
                Rversion = Rversion), type = type, filters = list(), 
                repos = repos)

filters parameter should default to NULL not list().

contumax avatar Nov 15 '23 17:11 contumax

Thank you. I've fixed this in the main branch.

andrie avatar Mar 24 '24 18:03 andrie