benmarwick/wordcountaddin

Cannot install package

Closed this issue · 2 comments

Hi, I tried to install your package as per your instructions:

> devtools::install_github("benmarwick/wordcountaddin", type = "source", dependencies = TRUE)
Installation failed: Failure when receiving data from the peer

What's happening? This is my session:_info():

> devtools::session_info()
Session info ---------------------------------------------------------------
 setting  value                       
 version  R version 3.4.1 (2017-06-30)
 system   x86_64, mingw32             
 ui       RStudio (1.0.153)           
 language (EN)                        
 collate  English_United States.1252  
 tz       Europe/Berlin               
 date     2017-10-09                  

Packages -------------------------------------------------------------------
 package       * version date       source        
 base          * 3.4.1   2017-09-06 local         
 compiler        3.4.1   2017-09-06 local         
 curl            2.6     2017-04-27 CRAN (R 3.3.2)
 datasets      * 3.4.1   2017-09-06 local         
 devtools        1.13.3  2017-08-02 CRAN (R 3.4.1)
 digest          0.6.12  2017-01-27 CRAN (R 3.4.0)
 git2r           0.19.0  2017-07-19 CRAN (R 3.4.1)
 graphics      * 3.4.1   2017-09-06 local         
 grDevices     * 3.4.1   2017-09-06 local         
 httr            1.3.1   2017-08-20 CRAN (R 3.4.1)
 memoise         1.1.0   2017-04-21 CRAN (R 3.4.1)
 methods       * 3.4.1   2017-09-06 local         
 R6              2.2.0   2016-10-05 CRAN (R 3.3.2)
 RevoUtils       10.0.6  2017-09-28 local         
 RevoUtilsMath * 10.0.1  2017-09-19 local         
 stats         * 3.4.1   2017-09-06 local         
 tools           3.4.1   2017-09-06 local         
 utils         * 3.4.1   2017-09-06 local         
 withr           2.0.0   2017-07-28 CRAN (R 3.4.1)

I can, however, download your repository to a local folder on my pc. If I do that, how can I install the package then? Thanks a lot

Hi Andrea,

I think you might have had a temporary problem with your internet connection. The error msg you report "Installation failed: Failure when receiving data from the peer" is one that relates to internet connectivity. Perhaps it's just within RStudio, or perhaps just a brief moment for your whole computer.

Perhaps if you try to run devtools::install_github("benmarwick/wordcountaddin", type = "source", dependencies = TRUE) now, or from a different internet connection you will not have this problem.

You could also try to install some other pkgs in RStudio to see if RStudio has a good connection to the internet. Or if it's just this one.

Nevermind, I tried today and it works! Mysteries of the Internet!!! I couldn't understand why, from the same connection, CRAN packages would install, but not this one...however today both CRAN and install_github work. I don't know why, but it's great anyway 👍