Closed naimont closed 10 years ago
I'm having the exact same error message appear when I try to install the Swirl package. I'm using a PC. Thanks for any help.
devtools has downloaded the zipfile, master.zip, then says that it is building a tar/gzip file, swirl_1.0.tar.gz. Nick and I talked this over yesterday, and it seems most likely that the installation process got the name, swirl_1.0, from the DESCRIPTION file. This would imply that it successfully unzipped master.zip. The diagnostic, then, suggests that it is trying to re-package the contents of master.zip into a tar/gzip file, swirl_1.0.tar.gz, as if it could only install from such a file, and not from a zip.
The diagnostic MAY be saying that the shell, sh, can't find usr/bin/gnutar. Apparently, gnutar is missing from Mac OSX 10.9. According to this post a solution is
brew install gnu-tar
cd /usr/bin
sudo ln -s /usr/local/opt/gnu-tar/libexec/gnubin/tar gnutar
You have devtools. If you have the current version of RStudio, the following workaround may do the job. I've tested it on linux mint.
On a PC, RTools may be needed.
WiiCrofter's solution worked for me
After installing "devtools" successfully, I tried to run "install_github(repo="swirl", username="ncarchedi")" but I got the error message below. Could anyone help me on it? By the way, I am using Mac. Thanks!
Installing github repo(s) swirl/master from ncarchedi Installing swirl.zip from https://github.com/ncarchedi/swirl/archive/master.zip Installing swirl '/Library/Frameworks/R.framework/Resources/bin/R' --vanilla CMD \ build \ '/private/var/folders/dp/5wkj0pgn7p9dcqzxx69gptx40000gn/T/RtmpJoSNSg/swirl-master' \ --no-manual --no-resave-data