-
Notifications
You must be signed in to change notification settings - Fork 153
Error with x::install_github when using packrat #428
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
Comments
I think I have the same problem. I've gotten my package to install with a fresh Packrat environment but after a short period of usage I get the same kind of Here is my full error:
And R.version:
EDIT: |
A possibly related issue is tracked in remotes is #350 . No replies from a maintainer on that thread either, though. |
What does |
I have similar issue as describd by @eturkes. Sys.getenv("tar") returns "" |
Interesting I get nearly the same results as @XiangZhangSC .
EDIT: |
Sorry it should be capitalized, could you run system2(Sys.getenv("TAR"), "--version") |
This is in a working Packrat installation. All my installations are "fresh" at the moment because my R version was just updated by my package manager. If I manage to create a "broken" installation, I'll let you know if how the tar version output matches up. EDIT: |
Bugfix
Then: (edited to correct getOption() spelling ) |
Can confirm that @franzbischoff's solution works on a previously broken installation. Thank you so much! One small correction though, |
Thank you so much for this because this had been frustrating me to no end. |
Linux user here (Linux Mint 19). For what it's worth, I tried writing this to my .Rprofile and it kept breaking Rstudio whenever I'd try to install or update any package (from CRAN or Github). I could install from the terminal/console just fine, however. I wish I knew why this was the case but it might be a fix you do a la carte whenever you want to install an R package from Github in a given session. |
Hello,
I have been trying to install the package
cmapR
from the cmapR repository. I encountered a few dependency issues that were eventually fixed. I have tried the package in a few different ways and finally arrived at a snippet that works (well, almost!). The issue has been discussed in some detail here (cmap/cmapR#6) w/ @tnat1031 (acmapR
maintainer).Issue 1: different results across Rproj+packrat combinations
I seem to be getting different success rates w/
cmapR
installations depending on how populated my Rproj+packrat combinations are. Is it likely that this is a factor?Issue 2: error w/ installation when using install_github()
I tried installing the package in one of my unpopulated (no R scripts) Rproj+packrat repos & I see this recurring error. I tried using both
devtools::install_github()
as well asremotes::install_github
, and I get the same error.Temporary fix
Installing the package in the user library and loading the package in the problem Rproj+packrat environment using the External packages Packrat options.
Looking through the code lines that point to this error in
install-github.R
and checkedtraceback
, local environments: none of them have helped with a fix so far. Any thoughts/suggestions/tips, in case it's a mixed devtools/remotes/packrat issue? Thanks in advance!R, RStudio versions
The text was updated successfully, but these errors were encountered: