Skip to content

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

Closed

Description

@charlottesirot

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

Activity

  1. jimhester commented on Aug 24, 2016

    @jimhester
    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
    .

  2. charlottesirot commented on Aug 24, 2016

    @charlottesirot
    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

  3. added
    bugan unexpected problem or unintended behavior
    on Nov 3, 2016
  4. fbreitwieser commented on Nov 18, 2016

    @fbreitwieser

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

  5. cmdcolin commented on Feb 23, 2017

    @cmdcolin

    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

  6. jrgant commented on Apr 4, 2017

    @jrgant

    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.

  7. vedatAltun commented on Mar 17, 2018

    @vedatAltun

    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

  8. lock commented on Sep 17, 2018

    @lock

    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/

  9. locked and limited conversation to collaborators on Sep 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorinstall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions