Trouble with installGithub.r example
AkhilGNair opened this issue · 2 comments
I'm trying to run the installGithub.r
example to install RcppCore/RcppEigen
and it seems to be failing with unused argument (update = TRUE)
, which I'm finding particularly confusing, as update
seems to be have changed to upgrade
.
The Dockerfile
I'm running is
FROM rocker/r-ver:3.4.1
RUN install2.r remotes
RUN installGithub.r RcppCore/RcppEigen
Without wanting to jump the gun, I thought it might be something down stream of rocker-org/rocker#227 - Is this actually where this issue should be?
Full report
akhil@pc:~/scratch/docker/littler$ docker build --no-cache -t test .
Sending build context to Docker daemon 60.42kB
Step 1/3 : FROM rocker/r-ver:3.4.1
---> cb8224c0a148
Step 2/3 : RUN install2.r remotes
---> Running in 6f7b369fdfd7
trying URL 'https://mran.microsoft.com/snapshot/2017-07-03/src/contrib/remotes_1.0.0.tar.gz'
Content type 'application/octet-stream' length 37958 bytes (37 KB)
==================================================
downloaded 37 KB
* installing *source* package ‘remotes’ ...
** package ‘remotes’ successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (remotes)
The downloaded source packages are in
‘/tmp/downloaded_packages’
---> dc33ed7ad891
Removing intermediate container 6f7b369fdfd7
Step 3/3 : RUN installGithub.r RcppCore/RcppEigen
---> Running in ac5f8afc66ee
Downloading GitHub repo RcppCore/RcppEigen@master
Installing 3 packages: lattice, Matrix, Rcpp
Installing packages into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
Error in download.file(url, destfile, method, mode = "wb", ...) :
unused argument (update = TRUE)
Warning in download.packages(pkgs, destdir = tmpd, available = available, :
download of package ‘lattice’ failed
Error in download.file(url, destfile, method, mode = "wb", ...) :
unused argument (update = TRUE)
Warning in download.packages(pkgs, destdir = tmpd, available = available, :
download of package ‘Matrix’ failed
Error in download.file(url, destfile, method, mode = "wb", ...) :
unused argument (update = TRUE)
Warning in download.packages(pkgs, destdir = tmpd, available = available, :
download of package ‘Rcpp’ failed
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
ERROR: dependencies ‘Matrix’, ‘Rcpp’ are not available for package ‘RcppEigen’
* removing ‘/usr/local/lib/R/site-library/RcppEigen’
Warning message:
In utils::install.packages(...) :
installation of package ‘/tmp/remotes774d75edb/RcppCore-RcppEigen-c03cd8a’ had non-zero exit status
---> 8d8bf9000743
Removing intermediate container ac5f8afc66ee
Successfully built 8d8bf9000743
Successfully tagged test:latest
This is a misunderstanding on your part, and related to why I prefer repositories.
It clearly falls over for lack of depends, so if you just did install.r RcppEigen
to start from CRAN you would a) get a labelled release rather than a random git snapshot and b) all its depends.
I think there is a way to make git(hub) installations do depends but as I don't care that much about them (see previous paragraph) I never added that.
Makes sense, thanks.