ncarchedi / swirl_OLD

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

Problem installing swirl on R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" #15

Closed ncarchedi closed 10 years ago

ncarchedi commented 11 years ago

I am posting the following issue on behalf of Marc, who emailed me directly:

Hi,

I tried following your instructions at http://ncarchedi.github.io/swirl/students.html and here is what I got:

R version 3.0.2 (2013-09-25) -- "Frisbee Sailing"
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> install.packages("devtools")
also installing the dependencies ‘stringr’, ‘bitops’, ‘httr’, ‘RCurl’, ‘memoise’, ‘whisker’, ‘evaluate’, ‘digest’

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/stringr_0.6.2.zip'
Content type 'application/zip' length 75244 bytes (73 Kb)
opened URL
downloaded 73 Kb

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/bitops_1.0-6.zip'
Content type 'application/zip' length 35878 bytes (35 Kb)
opened URL
downloaded 35 Kb

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/httr_0.2.zip'
Content type 'application/zip' length 137542 bytes (134 Kb)
opened URL
downloaded 134 Kb

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/RCurl_1.95-4.1.zip'
Content type 'application/zip' length 2836672 bytes (2.7 Mb)
opened URL
downloaded 2.7 Mb

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/memoise_0.1.zip'
Content type 'application/zip' length 10816 bytes (10 Kb)
opened URL
downloaded 10 Kb

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/whisker_0.3-2.zip'
Content type 'application/zip' length 64593 bytes (63 Kb)
opened URL
downloaded 63 Kb

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/evaluate_0.5.1.zip'
Content type 'application/zip' length 48203 bytes (47 Kb)
opened URL
downloaded 47 Kb

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/digest_0.6.3.zip'
Content type 'application/zip' length 136316 bytes (133 Kb)
opened URL
downloaded 133 Kb

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/devtools_1.3.zip'
Content type 'application/zip' length 238643 bytes (233 Kb)
opened URL
downloaded 233 Kb

package ‘stringr’ successfully unpacked and MD5 sums checked
package ‘bitops’ successfully unpacked and MD5 sums checked
package ‘httr’ successfully unpacked and MD5 sums checked
package ‘RCurl’ successfully unpacked and MD5 sums checked
package ‘memoise’ successfully unpacked and MD5 sums checked
package ‘whisker’ successfully unpacked and MD5 sums checked
package ‘evaluate’ successfully unpacked and MD5 sums checked
package ‘digest’ successfully unpacked and MD5 sums checked
package ‘devtools’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
        C:\Users\alcobe\AppData\Local\Temp\RtmpgvccrB\downloaded_packages
> library("devtools")
WARNING: Rtools is required to build R packages, but is not currently installed.

Please download and install Rtools 3.1 from http://cran.r-project.org/bin/windows/Rtools/ and then run find_rtools().
> find_rtools()
[1] TRUE
> library("devtools")
> 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
Error in function (type, msg, asError = TRUE)  : couldn't connect to host
> install.packages(file.choose(), repos=NULL)
Warning in install.packages :
  package ‘C:\Users\alcobe\Downloads\swirl-master.zip’ is not available (for R version 3.0.2)
ncarchedi commented 11 years ago

I suspect this has something to do swirl not being compatible with the most recent version of R.

Hence:

Warning in install.packages :
  package ‘C:\Users\alcobe\Downloads\swirl-master.zip’ is not available (for R version 3.0.2)

Does anyone have thoughts on this?

malcobe commented 10 years ago

Should I install a different R version? Which one?

ncarchedi commented 10 years ago

I'm sorry, I haven't had time to address this. The package works fine with the previous release -- R version 3.0.1 (2013-05-16) -- "Good Sport". However, I'm hoping to get it working with the new version (3.0.2) sometime today.

malcobe commented 10 years ago

Ok. Then I'll be looking forward to hearing from your news. Thanks.

ncarchedi commented 10 years ago

The package should now be compatible with the newest version of R (3.0.2). I upgraded R on my machine (Windows 7) and the package installed normally. Please confirm you're able to get it to work.

Thanks, Nick

malcobe commented 10 years ago

I am afraid I am still getting the same error messages:

library("devtools") 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 Error in function (type, msg, asError = TRUE) : couldn't connect to host install.packages(file.choose(), repos=NULL) Warning in install.packages : package ‘C:\Users\alcobe\Downloads\swirl-master.zip’ is not available (for R version 3.0.2)

Is there any means I can easily verify that my downloaded zipped file contains your latest version of the package?

ncarchedi commented 10 years ago

I think it may be an issue with devtools:

https://github.com/hadley/devtools/issues/100

http://stackoverflow.com/questions/16740256/error-installing-packages-from-github

  1. Remove any remnants of swirl from your computer.
  2. (optional) Try updating all of your packages to make sure everything is in good order -- update.packages(checkBuilt=TRUE, ask=FALSE). This may take several minutes. Then you can try using install_github() once more to see if it works.
  3. Download the zip manually by clicking on the "Download ZIP" button on the righthand side of the GitHub page (https://github.com/ncarchedi/swirl)?
  4. Run install.packages() on the manually downloaded ZIP.

Please let me know the outcome!

Nick

On Wed, Oct 9, 2013 at 3:02 AM, malcobe notifications@github.com wrote:

I am afraid I am still getting the same error messages:

library("devtools") 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 Error in function (type, msg, asError = TRUE) : couldn't connect to host install.packages(file.choose(), repos=NULL) Warning in install.packages : package ‘C:\Users\alcobe\Downloads\swirl-master.zip’ is not available (for R version 3.0.2)

Is there any means I can easily verify that my downloaded zipped file contains your latest version of the package?

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

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

malcobe commented 10 years ago

Still the same:

install.packages(file.choose(), repos=NULL) Warning in install.packages : package ‘C:\Users\alcobe\Downloads\swirl-master.zip’ is not available (for R version 3.0.2)

ncarchedi commented 10 years ago

I apologize, but I don't know why you are having this error. The links in my previous response are the best information I have. As yours is the only report I have seen of this problem, my guess is that it has something to do with your computer or network configuration. Please take another look at those links and see if anything in there helps. Otherwise, my hands are tied.

On Wed, Oct 9, 2013 at 10:54 AM, malcobe notifications@github.com wrote:

Still the same:

install.packages(file.choose(), repos=NULL) Warning in install.packages : package ‘C:\Users\alcobe\Downloads\swirl-master.zip’ is not available (for R version 3.0.2)

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

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

malcobe commented 10 years ago

Ok, sorry if I have caused any inconvenience. I will try this from a different network, and if that still doesn't work, I will try with R 3.0.1.

ncarchedi commented 10 years ago

I appreciate your patience. Please keep me posted so I can advise others accordingly. I'm sure someone else will experience the same problem at some point in the future. On Oct 9, 2013 11:59 AM, "malcobe" notifications@github.com wrote:

Ok, sorry if I have caused any inconvenience. I will try this from a different network, and if that still doesn't work, I will try with R 3.0.1.

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

sardanza commented 10 years ago

Excuse me for adding a coment to a closed issue. Just for the record, I wanted to say that I am having exactly the same issue with R 3.0.1 (32bits) under Windows XP sp3. I have tried all the suggestions written here and get the exactly the same results as malcobe for instance, trying to install locally with

install.packages(file.choose(), repos=NULL) I get: "Warning in install.packages : package ‘C:\Users\sardanza\Downloads\swirl-master.zip’ is not available (for R version 3.0.1)", so it might not be just a 3.0.2. versus 3.0.1 version.

ncarchedi commented 10 years ago

Thanks for the info. I'll try to look into this some more.

Nick

On Thu, Oct 17, 2013 at 8:37 AM, sardanza notifications@github.com wrote:

Excuse me for adding a coment to a closed issue. Just for the record, I wanted to say that I am having exactly the same issue with R 3.0.1 (32bits) under Windows XP sp3. I have tried all the suggestions written here and get the exactly the same results as malcobe for instance, trying to install locally with

install.packages(file.choose(), repos=NULL) I get: "Warning in install.packages : package ‘C:\Users\sardanza\Downloads\swirl-master.zip’ is not available (for R version 3.0.1)", so it might not be just a 3.0.2. versus 3.0.1 version.

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

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

malcobe commented 10 years ago

I finally tried this from a different network (no annoying proxies) and the package installation was successful:

library("devtools") 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\alcobe\AppData\Local\Temp\RtmpmGKExq/swirl.zip Installing swirl "C:/PROGRA~1/R/R-30~1.2/bin/x64/R" --vanilla CMD INSTALL \ "C:\Users\alcobe\AppData\Local\Temp\RtmpmGKExq\swirl-master" \ --library="C:/Program Files/R/R-3.0.2/library" --with-keep.source --install-tests

  • installing source package 'swirl' ... * R * inst * preparing package for lazy loading * help ** installing help indices * building package indices \ testing if installed package can be loaded
  • DONE (swirl)

Best, Marc.

ncarchedi commented 10 years ago

Great, thanks for the update!

Nick

On Sun, Oct 27, 2013 at 7:06 AM, malcobe notifications@github.com wrote:

I finally tried this from a different network (no annoying proxies) and the package installation was successful:

library("devtools") 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\alcobe\AppData\Local\Temp\RtmpmGKExq/swirl.zip Installing swirl "C:/PROGRA~1/R/R-30~1.2/bin/x64/R" --vanilla CMD INSTALL \ "C:\Users\alcobe\AppData\Local\Temp\RtmpmGKExq\swirl-master" \ --library="C:/Program Files/R/R-3.0.2/library" --with-keep.source --install-tests

  • installing source package 'swirl' ... * R * inst * preparing package for lazy loading * help ** installing help indices * building package indices \ testing if installed package can be loaded
  • DONE (swirl)

Best, Marc.

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

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

harvarad commented 8 years ago

Hey Guys,

I kind of have same problem with different package. Can you guide me to solve the error?

install.packages("RecordLinkage") Installing package into ‘/home/harvarab/R/x86_64-redhat-linux-gnu-library/3.0’ (as ‘lib’ is unspecified) Warning in install.packages : package ‘RecordLinkage’ is not available (for R version 3.0.2)

abongwa commented 6 years ago

Nick, any update with Swirl on R version 3.4.2, I think there is s compatibility issue with this newer version also