Comments (4)
I think it is a bug in remotes
: r-lib/remotes#73
The reprex wipes your CRAN cache, be careful! We do seem to need a CRANCACHE_DIR env var.
There is one:
Line 13 in ae361da
It should be documented, though.
from crancache.
I don't think this is related to the problem in remotes, because it also occurs with the CRAN version of remotes that does not use the CRAN cache. But maybe this means we just need to fix desc? (Or is it fixed there already?)
library(crancache)
repos <- c(
BioCsoft = "https://bioconductor.org/packages/3.5/bioc",
BioCann= "https://bioconductor.org/packages/3.5/data/annotation",
BioCexp = "https://bioconductor.org/packages/3.5/data/experiment",
BioCextra = "https://bioconductor.org/packages/3.5/extra",
CRAN ="http://cran.rstudio.com/"
)
tempdir <- tempfile("R-crancache")
dir.create(tempdir)
withr::with_envvar(
c(CRANCACHE_DIR = tempdir),
{
install_packages("org.Hs.ipi.db", repos = repos)
available_packages(repos = repos)
}
)
#> Installing package into '/home/muelleki/R/x86_64-pc-linux-gnu-library/3.4'
#> (as 'lib' is unspecified)
#> Adding 'org.Hs.ipi.db_1.3.0.tar.gz' to the cache
#> Adding 'org.Hs.ipi.db_1.3.0_R_x86_64-pc-linux-gnu.tar.gz' to the cache
#> Error: invalid version specification '1.3.0 '
Session info
devtools::session_info()
#> Session info -------------------------------------------------------------
#> setting value
#> version R version 3.4.1 (2017-06-30)
#> system x86_64, linux-gnu
#> ui X11
#> language en_US:en
#> collate en_US.UTF-8
#> tz Europe/Busingen
#> date 2017-07-13
#> Packages -----------------------------------------------------------------
#> package * version date source
#> assertthat 0.2.0 2017-04-11 CRAN (R 3.4.1)
#> backports 1.1.0 2017-05-22 CRAN (R 3.4.1)
#> base * 3.4.1 2017-07-08 local
#> bit 1.1-12 2014-04-09 CRAN (R 3.4.0)
#> bit64 0.9-8 2017-06-10 R-Forge (R 3.4.0)
#> blob 1.1.0 2017-06-17 CRAN (R 3.4.1)
#> callr 1.0.0.9000 2017-07-10 Github (r-lib/callr@ce3f15c)
#> compiler 3.4.1 2017-07-08 local
#> crancache * 0.0.0.9000 2017-07-13 local
#> cranlike 1.0.0 2017-07-11 local
#> crayon 1.3.2.9000 2017-07-10 Github (gaborcsardi/crayon@750190f)
#> curl 2.7 2017-06-26 CRAN (R 3.4.1)
#> datasets * 3.4.1 2017-07-08 local
#> DBI 0.7 2017-06-18 CRAN (R 3.4.1)
#> debugme 1.0.2 2017-03-01 CRAN (R 3.4.1)
#> desc 1.1.0 2017-01-27 CRAN (R 3.4.1)
#> devtools 1.13.2 2017-06-02 CRAN (R 3.4.1)
#> digest 0.6.12 2017-01-27 CRAN (R 3.4.1)
#> evaluate 0.10.1 2017-06-24 CRAN (R 3.4.1)
#> graphics * 3.4.1 2017-07-08 local
#> grDevices * 3.4.1 2017-07-08 local
#> htmltools 0.3.6 2017-04-28 CRAN (R 3.4.1)
#> knitr 1.16 2017-05-18 CRAN (R 3.4.1)
#> magrittr 1.5 2014-11-22 CRAN (R 3.4.1)
#> memoise 1.1.0 2017-04-21 CRAN (R 3.4.0)
#> methods * 3.4.1 2017-07-08 local
#> parsedate 1.1.3 2017-03-02 CRAN (R 3.4.0)
#> pkgconfig 2.0.1 2017-03-21 CRAN (R 3.4.1)
#> processx 2.0.1 2017-07-10 Github (r-lib/processx@4bf780f)
#> R6 2.2.2 2017-06-17 CRAN (R 3.4.1)
#> rappdirs 0.3.1 2016-03-28 CRAN (R 3.4.0)
#> Rcpp 0.12.11 2017-05-22 CRAN (R 3.4.1)
#> rlang 0.1.1 2017-05-18 CRAN (R 3.4.1)
#> rmarkdown 1.6 2017-06-15 CRAN (R 3.4.1)
#> rprojroot 1.2 2017-01-16 CRAN (R 3.4.1)
#> RSQLite 2.0 2017-07-09 Github (rstats-db/RSQLite@88c7c64)
#> rstudioapi 0.6 2016-06-27 CRAN (R 3.4.1)
#> stats * 3.4.1 2017-07-08 local
#> stringi 1.1.5 2017-04-07 CRAN (R 3.4.1)
#> stringr 1.2.0 2017-02-18 CRAN (R 3.4.1)
#> tibble 1.3.3 2017-05-28 CRAN (R 3.4.1)
#> tools 3.4.1 2017-07-08 local
#> utils * 3.4.1 2017-07-08 local
#> withr 1.0.2 2016-06-20 CRAN (R 3.4.1)
#> yaml 2.1.14 2016-11-12 CRAN (R 3.4.1)
from crancache.
FWIW, desc also struggles with this:
desc::desc_get_version("/home/muelleki/.cache/R-crancache/bioc/src/contrib/org.Hs.ipi.db/DESCRIPTION")
#> Error: invalid version specification '1.3.0 '
from crancache.
Fixed now in cranlike
, we just trim the whitespace before creating PACKAGES*: r-hub/cranlike@62b5d82
from crancache.
Related Issues (20)
- R 3.4.1 (macOS) is not caching downloaded binaries HOT 1
- Does not work on windows, because URL encoding messes up `\\` in the path HOT 2
- available_packages(): Error: invalid version specification '2.2.0 ' HOT 2
- readRDS() error from revdepcheck HOT 1
- CRAN release HOT 2
- `install_packages()` does not respect the `quiet` argument
- Can't access https://install-github.me/r-lib/crancache HOT 2
- Mac OS not caching HOT 1
- update_cache_binaries(): length(x) = 2 > 1' in coercion to 'logical(1) ERROR HOT 2
- download_packages() returns double-slashed path ("//home/hb/.cache/...")
- `install_deps` coordination? HOT 2
- ROBUSTNESS: Does crancache assume a single R version? HOT 1
- QUESTION: Update crancache when tarball has been lost?
- `available_packages()` potentially includes packages that were removed from CRAN
- crancache vs pkgcache HOT 1
- feature request for crancache_remove HOT 1
- Move `master` branch to `main` HOT 2
- Condition length error
- install_packages(): Force a re-install? [ANSWERED] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crancache.