Out-Of-Sync CRAN mirrors cause errors
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 409
- Forks
- 89
- PR merge metrics
- No merged PRs in 30d
Description
At the time of writing, Zoo on RStudio is version 1.7-12 published today (3/16). However, other mirrors haven't yet updated and show the older 1.7-11 (http://mirror.fcaglp.unlp.edu.ar/CRAN/).
When I try to deploy using such a setup, I get the following error (using the latest Packrat version which prints the error):
Deploying to R version '3.1.1' (Local version is '3.1.2')
Loading required package: packrat
Installing BH (1.54.0-5) ... OK (built source)
Installing DBI (0.3.1) ... OK (built source)
Installing R6 (2.0.1) ... OK (built source)
Installing RJSONIO (1.3-0) ... OK (built source)
Installing Rcpp (0.11.5) ... OK (built source)
Installing assertthat (0.1) ... OK (built source)
Installing bitops (1.0-6) ... OK (built source)
Installing digest (0.6.4) ... OK (built source)
Installing jsonlite (0.9.14.99) ... OK (built source)
Installing lazyeval (0.1.10) ... OK (built source)
Installing magrittr (1.5) ... OK (built source)
Installing mime (0.2) ... OK (built source)
Installing packrat (0.4.3) ... OK (built source)
Installing stringr (0.6.2) ... OK (built source)
Installing xtable (1.7-4) ... OK (built source)
Installing yaml (2.1.13) ... OK (built source)
Installing zoo (1.7-11) ... Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL 'http://cran.rstudio.com/src/contrib/zoo_1.7-11.tar.gz'
In addition: There were 17 warnings (use warnings() to see them)
Warning in download.packages(pkgRecord$name, destdir = pkgSrcDir, repos = repos, :
download of package âzooâ failed
Error in fileLoc[1, 2] : subscript out of bounds
Calls: <Anonymous> ... playActions -> installPkg -> getSourceForPkgRecord -> identical
In addition: Warning message:
In getSourceForPkgRecord(pkgRecord, srcDir(project), availablePkgs, :
Failed to download current version of zoo(1.7-11)
Execution halted
Indeed http://cran.rstudio.com/src/contrib/zoo_1.7-11.tar.gz does not exist, but http://cran.rstudio.com/src/contrib/zoo_1.7-12.tar.gz does. It seems there's some confusion about which version of the package is "current."
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are named. Start by reproducing deployment with a CRAN mirror whose package index lists an older zoo version, then trace the package-version lookup and download path. Done means deployment no longer requests an archive that the selected mirror does not provide.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100