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 #88

Closed
tidy-bot opened this issue Aug 2, 2017 · 8 comments
Labels
bug an unexpected problem or unintended behavior install

Comments

@tidy-bot
Copy link

tidy-bot commented Aug 2, 2017

Issue by charlottesirot
Wednesday Aug 24, 2016 at 10:51 GMT
Originally opened as r-lib/devtools#1298


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 r-lib/devtools#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

@tidy-bot tidy-bot added bug an unexpected problem or unintended behavior install labels Aug 2, 2017
@tidy-bot
Copy link
Author

tidy-bot commented Aug 2, 2017

Comment by jimhester
Wednesday Aug 24, 2016 at 11:47 GMT


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
r-lib/devtools#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
r-lib/devtools#1298, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAMh20miTMVt2QyL1nogSacTH8HgyYgbks5qjCJIgaJpZM4Jr4XI
.

@tidy-bot
Copy link
Author

tidy-bot commented Aug 2, 2017

Comment by charlottesirot
Wednesday Aug 24, 2016 at 14:04 GMT


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

@tidy-bot
Copy link
Author

tidy-bot commented Aug 2, 2017

Comment by fbreitwieser
Friday Nov 18, 2016 at 15:47 GMT


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

@tidy-bot
Copy link
Author

tidy-bot commented Aug 2, 2017

Comment by cmdcolin
Thursday Feb 23, 2017 at 18:23 GMT


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

@tidy-bot
Copy link
Author

tidy-bot commented Aug 2, 2017

Comment by jrgant
Tuesday Apr 04, 2017 at 01:55 GMT


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.

@rlayfield
Copy link

Has anyone discovered a workaround for this? I've been experiencing this in R version 3.3.2 (2016-10-31)

@gaborcsardi
Copy link
Member

I think this is called by a broken dependency. Try loading the dependencies manually, to see if any of them fails.

@jimhester
Copy link
Member

As @gaborcsardi said I think this is often the case that the Rcpp (in this case) installation failed, so any packages which depend on it also fail when R attempts to load the Rcpp namespace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior install
Projects
None yet
Development

No branches or pull requests

4 participants