Skip to content

Instantly share code, notes, and snippets.

@hpgsantos
Last active March 29, 2018 13:04
Show Gist options
  • Save hpgsantos/469811911f504f70d28f6d38626ceb14 to your computer and use it in GitHub Desktop.
Save hpgsantos/469811911f504f70d28f6d38626ceb14 to your computer and use it in GitHub Desktop.
r_packages_install
if(!require(XML)) install.packages('XML')
if(!require(data.table)) install.packages('data.table')
if(!require(geosphere)) install.packages('geosphere')
if(!require(rgdal)) install.packages("https://cran.r-project.org/src/contrib/Archive/rgdal/rgdal_1.2-5.tar.gz",repos=NULL, method="libcurl")
if(!require(rgeos)) install.packages("https://cran.r-project.org/src/contrib/Archive/rgeos/rgeos_0.3-23.tar.gz",repos=NULL, method="libcurl")
if(!require(gdalUtils)) install.packages('gdalUtils')
##system("sudo apt-get update --fix-missing && sudo apt-get install -y libgdal-dev libproj-dev")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment