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

error in instalation using ... devtools::install_github("data-edu/dataedu") #81

Closed
suresh2014 opened this issue Apr 9, 2020 · 2 comments

Comments

@suresh2014
Copy link

Please briefly describe your problem and what output you expect. If you have a question, please don't use this form. Instead, ask on https://stackoverflow.com/ or https://community.rstudio.com/.

Please include a minimal reproducible example (AKA a reprex). If you've never heard of a reprex before, start by reading https://www.tidyverse.org/help/#reprex.

Brief description of the problem

> devtools::install_github("data-edu/dataedu")
Downloading GitHub repo data-edu/dataedu@master
sh: 1: /bin/gtar: not found
sh: 1: /bin/gtar: not found
Error: Failed to install 'dataedu' from GitHub:
  error in running command
In addition: Warning messages:
1: In system(cmd) : error in running command
2: In utils::untar(tarfile, ...) :/bin/gtar -xf '/tmp/RtmpCrd0sR/file33f81e7ec26a.tar.gz' -C '/tmp/RtmpCrd0sR/remotes33f8291625ea'returned error code 127

please solve this

@ivelasq
Copy link
Collaborator

ivelasq commented Apr 9, 2020

Hello,

Could you please let us know if 1) you installed R using anaconda and 2) if you've taken any steps to try to solve this before posting? A Google search led me to these links. Unfortunately, it seems like it is a system environment issue, not a package issue.

Please try Sys.setenv(TAR = "/bin/tar") per these posts.

If that does not work and you installed R through anaconda, this issue from 29 days ago states that if you are using conda you need to use conda to install all packages. See https://whattheyforgot.org/set-up-an-r-dev-environment.html#what-about-conda for more info.

Thanks!

@ivelasq
Copy link
Collaborator

ivelasq commented May 29, 2020

Hi @suresh2014, closing this but please try out my recommendations above. Hope you are able to install the package!

@ivelasq ivelasq closed this as completed May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants