ncarchedi / swirl_OLD

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

Trouble installing swirl #24

Closed crablady closed 10 years ago

crablady commented 10 years ago

I would like to play with swirl but I am having trouble downloading it.

I get the error message pasted below this message

I assume this is due to me not having the path "J:/R-Library/3.0.1" on my system, but I do not know how to fix this/ enter a valid path - are you able to advise. I also tried downloading the swirl-master.zip file and installing that locally but got the following error

Warning in install.packages : package ‘~/R/Packages/swirl-master.zip’ is not available (for R version 3.0.1)

I am working on a university windows 7 pc that with a user log on account, but usually have no problem install and downloading packages. I use R studio (v 0.97.248) with R version 3.0.1

Any advice would be appreciated,

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\user\AppData\Local\Temp\RtmpAnK06N/swirl.zip Installing swirl "C:/PROGRA~2/R/R-30~1.1/bin/i386/R" --vanilla CMD INSTALL \ "C:\Users\user\AppData\Local\Temp\RtmpAnK06N\swirl-master" \ --library="\Tower7/home37/user/R/win-library/3.0" --with-keep.source --install-tests

Warning message: In normalizePath(path.expand(path), winslash, mustWork) : path[3]="J:/R-Library/3.0.1": The system cannot find the path specified Warning in normalizePath(path.expand(path), winslash, mustWork) : path[4]="J:/R-Library/3.0.1": The system cannot find the path specified

hmenag1 commented 10 years ago

Hi - I'm having the same issues crablady is having. Please help.

ncarchedi commented 10 years ago

Thanks for letting us know about this. It may have something to do with your university/office network (firewall preventing certain files to be written?) My only recommendation is to try installing on a personal computer and see if that resolves your issue.

Sincerely, Nick

On Wed, Oct 30, 2013 at 10:42 PM, hmenag1 notifications@github.com wrote:

Hi - I'm having the same issues crablady is having. Please help.

— Reply to this email directly or view it on GitHubhttps://github.com/ncarchedi/swirl/issues/24#issuecomment-27457376 .

Nicholas A. Carchedi ScM Student, Biostatistics Johns Hopkins Bloomberg School of Public Health 301.802.0573 | nick.carchedi@gmail.com

hmenag1 commented 10 years ago

Hi Nick - Thanks for your suggestion. However, I'm on a private 64-bit computer running Windows 8. Below is the error I get after installing devtools. The error I get is displayed below. Thanks again for your help.

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\HENRIM~1\AppData\Local\Temp\RtmpkPNEqe/swirl.zip Installing swirl "C:/PROGRA~1/R/R-30~1.2/bin/x64/R" --vanilla CMD INSTALL "C:\Users\Henri \ Ménager\AppData\Local\Temp\RtmpkPNEqe\swirl-master" --library="C:/Program \ Files/R/R-3.0.2/library" --with-keep.source --install-tests

Warning: invalid package 'C:\Users\Henri Ménager\AppData\Local\Temp\RtmpkPNEqe\swirl-master' Error: ERROR: no packages specified Error: Command failed (1)

ncarchedi commented 10 years ago

@hmenag1 - I believe your problem is different from @crablady

Your problem is still a mystery to me, but I searched around online and found this: https://github.com/hadley/devtools/issues/117

All the way at the bottom of the page, the guy appears to find a solution to the problem, which may be related to your problem. Please locate the file on your computer called Rprofile.site. On my computer, it's in "C:\Program Files\R\R-3.0.2\etc\Rprofile.site".

Open it with any text editor (Notepad will do just fine) and if there is a line that says setwd("..."), please place a # to the left of it (i.e. comment it out). Save the file and re-try the installation. Please let me know if this works. It's our only hope at the moment.

Thanks, Nick

AntonioMarRod commented 10 years ago

Hi Nick,

Where is setwd("...")?

rprofile

Thanks

ncarchedi commented 10 years ago

We're going to be putting the next version of swirl on CRAN, which will hopefully eliminate these installation issues. Sorry for the inconvenience.