ncarchedi / swirl_OLD

We've moved! See README below for more info.
http://swirlstats.com
47 stars 28 forks source link

issue with installing #27

Closed naimont closed 10 years ago

naimont commented 10 years ago

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

kmOU19 commented 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.

WilCrofter commented 10 years ago

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.

  1. Download the zip file manually and extract the contents to some convenient location.
  2. Open /swirl-master/swirl.RProj in RStudio
  3. On RStudio's build tab, click Build & Reload
  4. Invoke swirl() in the command prompt

On a PC, RTools may be needed.

apeterson91 commented 10 years ago

WiiCrofter's solution worked for me