Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install_github not installing dependencies even with updated version of devtools #1298

Closed
charlottesirot opened this issue Aug 24, 2016 · 7 comments
Labels
bug an unexpected problem or unintended behavior install

Comments

@charlottesirot
Copy link

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

@jimhester
Copy link
Member

Try restarting the R session after installing devel devtools.

On Aug 24, 2016 6:51 AM, "charlottesirot" notifications@github.com wrote:

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 juliasilge/widyr#3 and #1265
#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:/PROGRA1/R/R-331.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:/PROGRA1/R/R-331.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:/PROGRA1/R/R-331.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:/PROGRA1/R/R-331.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


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#1298, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAMh20miTMVt2QyL1nogSacTH8HgyYgbks5qjCJIgaJpZM4Jr4XI
.

@charlottesirot
Copy link
Author

So just to be sure, I did:

  1. Open R
  2. run:
> library(devtools)
>devtools::install_github("hadley/devtools", force = T)

Everything is OK

  1. I closed R
  2. I reopened R
  3. and then:
> 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/Rtmp4UqfDo/devtools7c45b22c6f/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)

Do I understand well ??
Again thank you so much for your help

Cha

@fbreitwieser
Copy link

I have the same issue on Windows (R 3.3.2 32bit), and the problem persists after restarting R.

@cmdcolin
Copy link

I was seeing something that reminded me of this

When I installed my package which lists shiny as a Depends with install_github it would produce errors about httpuv and Rcpp etc not being installed. I could try to make a minimal test case too if there is interest

I didn't try using the latest devtools because it said it needed Rtools which seemed a little bit heavy duty

@jrgant
Copy link

jrgant commented 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
Copy link

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
Copy link

lock bot commented 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/

@lock lock bot locked and limited conversation to collaborators Sep 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior install
Projects
None yet
Development

No branches or pull requests

7 participants