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 extraction sometimes fails when .Rbuildignore is present #1433

Closed
Vin985 opened this issue Jan 6, 2017 · 5 comments
Closed
Labels
bug an unexpected problem or unintended behavior install

Comments

@Vin985
Copy link

Vin985 commented Jan 6, 2017

Hi,

I have this weird problem at work when if try to install a package via install github and a .Rbuildignore file is present, then the package extraction fails. I get the following error:

install_github("hadley/devtools")
Downloading GitHub repo hadley/devtools@master
from URL https://api.github.com/repos/hadley/devtools/zipball/master
Error in utils::unzip(src, exdir = target) :
cannot open file 'C:/Users/CHRIST~1/AppData/Local/Temp/RtmpOUEcJp/devtools1344435d3aae/hadley-devtools-1ce84b0/R/R.r': No such file or directory

I did some tests, if I remove the .Rbuildignore file, everything works fine.
If I manually download the package, extract it and use devtools::install() on it, no problems either.
This has happened at least for me and another colleague but others don't seem tohaveany problem with it. I don't know if it can be a permission problem since I'm not an administrator on my computer.

The content of the .Rbuildignore doesn't seem to matter, if the file is empty, the install fails as well.

The tests were made with devtools 1.12.0 and R 3.3.1 32bits (fails also with 64bit)

Any idea on this?

Thanks

Sylvain

@Kenkleinman
Copy link

I have this problem also. Major PIA.

@hadley
Copy link
Member

hadley commented Aug 1, 2017

Could you please both provide session_info()? (Just the OS part, not the packages)

@hadley hadley added bug an unexpected problem or unintended behavior install labels Aug 1, 2017
@Kenkleinman
Copy link

I have not been able to install_github() on my work computer since I got it, but today, it works. Is that a smiley face or a frowney face?

@hadley
Copy link
Member

hadley commented Aug 2, 2017

It seems to be the same problem as #1464, so lets move all discussion there. It looks like it's going to be painful to track down the issue since it's seemingly random on which computers it works.

@hadley hadley closed this as completed Aug 2, 2017
@lock
Copy link

lock bot commented Sep 18, 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 18, 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

3 participants