Repository navigation
install_github not installing dependencies even with updated version of devtools #1298
Copy link
Copy link
Closed
Closed
Copy link
Labels
Description
Dear developers,
I try to install my package (https://github.com/charlottesirot/elementR) from github on my win7 machine without success. I have the same issue than juliasilge/widyr#3 and #1265. So I tried with the new version of devtools but it seems not to work:
>devtools::install_github("hadley/devtools", force = T)
Downloading GitHub repo hadley/devtools@master
from URL https://api.github.com/repos/hadley/devtools/zipball/master
Installing devtools
"C:/PROGRA~1/R/R-33~1.1/bin/i386/R" --no-site-file --no-environ --no-save \
--no-restore --quiet CMD INSTALL \
"C:/Users/cha/AppData/Local/Temp/RtmpQ9I7QI/devtools24053e462ea/hadley-devtools-e6ad9b5" \
--library="C:/Users/cha/Documents/R/win-library/3.3" --install-tests
* installing *source* package 'devtools' ...
** R
** inst
** tests
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
*** arch - i386
*** arch - x64
* DONE (devtools)
Reloading installed devtools
> install_github('Rstudio/DT')
Downloading GitHub repo Rstudio/DT@master
from URL https://api.github.com/repos/Rstudio/DT/zipball/master
Installing DT
"C:/PROGRA~1/R/R-33~1.1/bin/i386/R" --no-site-file --no-environ --no-save \
--no-restore --quiet CMD INSTALL \
"C:/Users/cha/AppData/Local/Temp/RtmpQ9I7QI/devtools24027754908/rstudio-DT-25d879b" \
--library="C:/Users/cha/Documents/R/win-library/3.3" --install-tests
* installing *source* package 'DT' ...
** R
** inst
** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called 'Rcpp'
ERROR: lazy loading failed for package 'DT'
* removing 'C:/Users/cha/Documents/R/win-library/3.3/DT'
Error: Command failed (1)
> install_github('Rstudio/DT', dependencies = T)
Downloading GitHub repo Rstudio/DT@master
from URL https://api.github.com/repos/Rstudio/DT/zipball/master
Installing DT
"C:/PROGRA~1/R/R-33~1.1/bin/i386/R" --no-site-file --no-environ --no-save \
--no-restore --quiet CMD INSTALL \
"C:/Users/cha/AppData/Local/Temp/RtmpQ9I7QI/devtools240743c1947/rstudio-DT-25d879b" \
--library="C:/Users/cha/Documents/R/win-library/3.3" --install-tests
* installing *source* package 'DT' ...
** R
** inst
** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called 'Rcpp'
ERROR: lazy loading failed for package 'DT'
* removing 'C:/Users/cha/Documents/R/win-library/3.3/DT'
Error: Command failed (1)
> library(devtools)
> install_github('Rstudio/DT', dependencies = T)
Downloading GitHub repo Rstudio/DT@master
from URL https://api.github.com/repos/Rstudio/DT/zipball/master
Installing DT
"C:/PROGRA~1/R/R-33~1.1/bin/i386/R" --no-site-file --no-environ --no-save \
--no-restore --quiet CMD INSTALL \
"C:/Users/cha/AppData/Local/Temp/RtmpQ9I7QI/devtools2403d75358c/rstudio-DT-25d879b" \
--library="C:/Users/cha/Documents/R/win-library/3.3" --install-tests
* installing *source* package 'DT' ...
** R
** inst
** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called 'Rcpp'
ERROR: lazy loading failed for package 'DT'
* removing 'C:/Users/cha/Documents/R/win-library/3.3/DT'
Error: Command failed (1)
I don't understand why... Do I miss something ?
Sorry if this is a newbie question :S
Thank you very much in advance for your answer
cha
Reactions are currently unavailable
Activity
jimhester commentedon Aug 24, 2016
Try restarting the R session after installing devel devtools.
On Aug 24, 2016 6:51 AM, "charlottesirot" notifications@github.com wrote:
charlottesirot commentedon Aug 24, 2016
So just to be sure, I did:
Everything is OK
Do I understand well ??
Again thank you so much for your help
Cha
fbreitwieser commentedon Nov 18, 2016
I have the same issue on Windows (R 3.3.2 32bit), and the problem persists after restarting R.
cmdcolin commentedon Feb 23, 2017
I was seeing something that reminded me of this
When I installed my package which lists
shinyas a Depends with install_github it would produce errors abouthttpuvandRcppetc not being installed. I could try to make a minimal test case too if there is interestI didn't try using the latest devtools because it said it needed Rtools which seemed a little bit heavy duty
jrgant commentedon Apr 4, 2017
I'm still having this issue as well. I have tried devtools 1.12.0 and 1.12.0.9000 (went the Rtools route) in R 3.3.2 and 3.3.3. Nothing I've tried has succeeded in getting the sub-dependencies to be installed, unfortunately.
vedatAltun commentedon Mar 17, 2018
try to download libxml2-dev libs for Ubuntu 16.04
sudo apt-get install libxml2-dev or sudo apt-get install libxml2
and reinstall your package in R Studio
lock commentedon Sep 17, 2018
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/