SEL-Columbia / networkplanner.R

Various post-processing scripts for networkplanner
1 stars 1 forks source link

Common error when trying to install networkplanner.R #32

Open carbz opened 10 years ago

carbz commented 10 years ago

Not sure why this is happening for some users:

install_github("SEL-Columbia/networkplanner.R") Installing github repo networkplanner.R/master from SEL-Columbia Downloading networkplanner.R.zip from https://github.com/SEL-Columbia/networkplanner.R/archive/master.zip Error in function (type, msg, asError = TRUE) : couldn't connect to host

zmyao88 commented 10 years ago

i think on windows machine you will have to specify the username field. ie install_github("networkplanner. r", "sel-columbia"). i think the "username/repo" style only work on unix based os. On Mar 27, 2014 11:29 PM, "Jonathan Carbajal" notifications@github.com wrote:

Not sure why this is happening for some users:

install_github("SEL-Columbia/networkplanner.R") Installing github repo networkplanner.R/master from SEL-Columbia Downloading networkplanner.R.zip from https://github.com/SEL-Columbia/networkplanner.R/archive/master.zip

Reply to this email directly or view it on GitHubhttps://github.com/SEL-Columbia/networkplanner.R/issues/32 .

carbz commented 10 years ago

I've used the username/repo style on both Linux and Windows environments okay so I don't think that's it.

Retried the comman again though and it just worked. It have been do to internet issues here in Jakarta or trainees' competition for bandwidth.

zmyao88 commented 10 years ago

If Internet bandwidth is causing trouble you can install from zip file with corresponding function.

On Friday, March 28, 2014, Jonathan Carbajal notifications@github.com wrote:

I've used the username/repo style on both Linux and Windows environments okay so I don't think that's it.

Retried the comman again though and it just worked. It have been do to internet issues here in Jakarta or trainees' competition for bandwidth.

Reply to this email directly or view it on GitHubhttps://github.com/SEL-Columbia/networkplanner.R/issues/32#issuecomment-38890326 .

carbz commented 10 years ago

Not quite a success yet but some progress. Error message we're encountering now with loading of rgeos is below:

install_github('networkplanner.R', 'SEL-Columbia') Installing github repo networkplanner.R/master from SEL-Columbia Downloading networkplanner.R.zip from https://github.com/SEL-Columbia/networkplanner.R/archive/master.zip Installing package from C:\Users\ANDRIAN\AppData\Local\Temp\Rtmp8Kk3Fx/networkplanner.R.zip Installing networkplanner Installing dependencies for networkplanner: igraph, lubridate, rgdal, rgeos, abind, geosphere Installing packages into ‘C:/Users/ANDRIAN/Documents/R/win-library/3.0’ (as ‘lib’ is unspecified) trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/igraph_0.7.0.zip' Content type 'application/zip' length 7355686 bytes (7.0 Mb) opened URL downloaded 7.0 Mb

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/lubridate_1.3.3.zip' Content type 'application/zip' length 665043 bytes (649 Kb) opened URL downloaded 649 Kb

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/rgdal_0.8-16.zip' Content type 'application/zip' length 12536560 bytes (12.0 Mb) opened URL downloaded 12.0 Mb

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/rgeos_0.3-4.zip' Content type 'application/zip' length 1675493 bytes (1.6 Mb) opened URL downloaded 1.6 Mb

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/abind_1.4-0.zip' Content type 'application/zip' length 35119 bytes (34 Kb) opened URL downloaded 34 Kb

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/geosphere_1.3-8.zip' Content type 'application/zip' length 992203 bytes (968 Kb) opened URL downloaded 968 Kb

package ‘igraph’ successfully unpacked and MD5 sums checked package ‘lubridate’ successfully unpacked and MD5 sums checked package ‘rgdal’ successfully unpacked and MD5 sums checked package ‘rgeos’ successfully unpacked and MD5 sums checked Warning: unable to move temporary installation ‘C:\Users\ANDRIAN\Documents\R\win-library\3.0\file1cb452853034\rgeos’ to ‘C:\Users\ANDRIAN\Documents\R\win-library\3.0\rgeos’ package ‘abind’ successfully unpacked and MD5 sums checked package ‘geosphere’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in C:\Users\ANDRIAN\AppData\Local\Temp\Rtmp8Kk3Fx\downloaded_packages "C:/PROGRA~1/R/R-30~1.3/bin/i386/R" --vanilla CMD INSTALL \ "C:\Users\ANDRIAN\AppData\Local\Temp\Rtmp8Kk3Fx\devtools1cb41c323d1b\networkplanner.R-master" \ --library="C:/Users/ANDRIAN/Documents/R/win-library/3.0" --install-tests

ERROR: dependency 'rgeos' is not available for package 'networkplanner'

carbz commented 10 years ago

A subsequent attempt yields yet a different error message. Starting to think there may be something funny with permissions for the trainee's computer or since he is runnning Windows on a Mac machine..

install_github('networkplanner.R', 'SEL-Columbia') Installing github repo networkplanner.R/master from SEL-Columbia Downloading networkplanner.R.zip from https://github.com/SEL-Columbia/networkplanner.R/archive/master.zip Installing package from C:\Users\ANDRIAN\AppData\Local\Temp\Rtmp8Kk3Fx/networkplanner.R.zip Installing networkplanner Installing dependencies for networkplanner: rgeos Installing package into ‘C:/Users/ANDRIAN/Documents/R/win-library/3.0’ (as ‘lib’ is unspecified) Error in gzfile(file, mode) : cannot open the connection In addition: Warning message: In gzfile(file, mode) : cannot open compressed file 'C:\Users\ANDRIAN\AppData\Local\Temp\Rtmp8Kk3Fx/libloc_195_16a8b6e1.rds', probable reason 'Permission denied'

carbz commented 10 years ago

Success experienced with the um-teenth attempt!

install_github('networkplanner.R', 'SEL-Columbia') Installing github repo networkplanner.R/master from SEL-Columbia Downloading networkplanner.R.zip from https://github.com/SEL-Columbia/networkplanner.R/archive/master.zip Installing package from C:\Users\ANDRIAN\AppData\Local\Temp\Rtmp8Kk3Fx/networkplanner.R.zip Installing networkplanner "C:/PROGRA~1/R/R-30~1.3/bin/i386/R" --vanilla CMD INSTALL \ "C:\Users\ANDRIAN\AppData\Local\Temp\Rtmp8Kk3Fx\devtools1cb4c2da43\networkplanner.R-master" \ --library="C:/Users/ANDRIAN/Documents/R/win-library/3.0" --install-tests

  • installing source package 'networkplanner' ... * R * inst * preparing package for lazy loading * help ** installing help indices * building package indices \ testing if installed package can be loaded
  • DONE (networkplanner)
zmyao88 commented 10 years ago

I don't know about the this. Rgeos has this dependencies on Geos library, it won't install properly if Geos is not installed. Windows and Mac should have this, but as for Mac that runs windows....

On Friday, March 28, 2014, Jonathan Carbajal notifications@github.com wrote:

A subsequent attempt yields yet a different error message. Starting to think there may be something funny with permissions for the trainee's computer or since he is runnning Windows on a Mac machine..

install_github('networkplanner.R', 'SEL-Columbia') Installing github repo networkplanner.R/master from SEL-Columbia Downloading networkplanner.R.zip from https://github.com/SEL-Columbia/networkplanner.R/archive/master.zip Installing package from C:\Users\ANDRIAN\AppData\Local\Temp\Rtmp8Kk3Fx/networkplanner.R.zip Installing networkplanner Installing dependencies for networkplanner: rgeos Installing package into 'C:/Users/ANDRIAN/Documents/R/win-library/3.0' (as 'lib' is unspecified) Error in gzfile(file, mode) : cannot open the connection In addition: Warning message: In gzfile(file, mode) : cannot open compressed file 'C:\Users\ANDRIAN\AppData\Local\Temp\Rtmp8Kk3Fx/libloc_195_16a8b6e1.rds', probable reason 'Permission denied'

Reply to this email directly or view it on GitHubhttps://github.com/SEL-Columbia/networkplanner.R/issues/32#issuecomment-38890607 .

zmyao88 commented 10 years ago

Just realized that for windows machine you MUST install Rtools from CRAN, otherwise non-cran packages wont install properly.