ncarchedi / swirl_OLD

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

Problem installing: 'C:\Program' is not recognized #32

Closed ncarchedi closed 10 years ago

ncarchedi commented 10 years ago

I'm posting this on behalf of Elizabeth, who emailed me directly. It appears to be slightly different from the other installation problems some people have reported. Please comment if you think you know what's going on:

Hello,

I was trying to install swirl, and I think I got through the >library("devtools") step ok, but when I try to install swirl, I get this:

> install_github(repo="swirl", username="ncarchedi")
Installing github repo(s) swirl/master from ncarchedi
Downloading swirl.zip from https://github.com/ncarchedi/swirl/archive/master.zip
Installing package from C:\Users\Elizabeth Ng\AppData\Local\Temp\RtmpKUymSw/swirl.zip
Installing swirl
"C:/Program  \
  Files/R/R-3.0.2/bin/x64/R"  \
  --vanilla CMD INSTALL  \
  "C:\Users\Elizabeth  \
  Ng\AppData\Local\Temp\RtmpKUymSw\swirl-master"  \
  --library="C:/Users/Elizabeth  \
  Ng/Documents/R/win-library/3.0"  \
  --with-keep.source --install-tests 

'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Error: Command failed (1)
WilCrofter commented 10 years ago

On Wed, 13 Nov 2013 12:49:49 -0800 Nick Carchedi notifications@github.com wrote:

'C:\Program' is not recognized as an internal or external command, operable program or batch file.

As if it truncated "C:\Program Files\R..." at the space.

WilCrofter commented 10 years ago

If you have devtools and the current version of RStudio, the following workaround may do the job. I've tested it on linux mint.

Download the zip file manually and extract the contents to some convenient location. Open /swirl-master/swirl.RProj in RStudio On RStudio's build tab, click Build & Reload Invoke swirl() in the command prompt On a PC, RTools may be needed.