Add optional packages for visualisation
Add optional packages for visualisation

ggmap, tmap, leaflet and shiny packages are all great for making maps in R.
I made a free tutorial on some of these: https://github.com/Robinlovelace/Creating-maps-in-R/
OSGeo/OSGeoLive,astroidex/OSGeoLive,guygriffiths/OSGeoLive,guygriffiths/OSGeoLive,OSGeo/OSGeoLive,kalxas/OSGeoLive,OSGeo/OSGeoLive,guygriffiths/OSGeoLive,PascalLike/OSGeoLive,guygriffiths/OSGeoLive,PascalLike/OSGeoLive,PascalLike/OSGeoLive,PascalLike/OSGeoLive,guygriffiths/OSGeoLive,OSGeo/OSGeoLive,OSGeo/OSGeoLive,PascalLike/OSGeoLive,kalxas/OSGeoLive,astroidex/OSGeoLive,astroidex/OSGeoLive,kalxas/OSGeoLive,kalxas/OSGeoLive,astroidex/OSGeoLive,kalxas/OSGeoLive
core <- c("classInt", "DCluster", "deldir", "geoR", "gstat", "maptools",
"RandomFields", "raster", "RColorBrewer", "rgdal", "sp", "spatstat",
"spdep", "splancs","spgrass6", "rgeos","ncdf", "RSAGA")

#optional <- c("ade4", "adehabitat", "adehabitatHR", "adehabitatHS", "adehabitatLT", "adehabitatMA", "ads", "akima", "ash", "aspace", "automap", "CircSpatial", "clustTool", "CompRandFld", "constrainedKriging", "cshapes", "diseasemapping", "DSpat", "ecespa", "fields", "FieldSim", "gdistance", "Geneland", "GEOmap", "geomapdata", "geonames", "geoRglm", "geosphere", "GeoXp", "glmmBUGS", "gmaps", "gmt", "Guerry", "hdeco", "intamap", "mapdata", "mapproj", "maps", "MarkedPointProcess", "MBA", "ModelMap", "ncf", "nlme", "pastecs", "PBSmapping", "PBSmodelling", "psgp", "ramps", "RArcInfo", "regress", "RgoogleMaps", "RPyGeo", "RSurvey", "rworldmap", "sgeostat", "shapefiles", "sparr", "spatcounts", "spatgraphs", "spatial", "spatialCovariance", "SpatialExtremes", "spatialkernel", "spatialsegregation", "spBayes", "spcosa", "spgwr", "sphet", "spsurvey", "SQLiteMap", "Stem", "tgp", "trip", "tripack", "tripEstimation", "UScensus2000", "vardiag", "vegan", "ggmap", "tmap", "leaflet", "shiny") 

#non-spatial <- c("RPostgresql","RSQLite","RODBC")

packagelist <- core

for (i in packagelist) {
	#Generic Version followed by Australian Repos
	#install.packages(i, repos= "http://cran.r-project.org", lib = "/usr/local/lib/R/site-library/" , dependencies = TRUE)
	#For AU builds	
	#install.packages(i, repos= "http://cran.ms.unimelb.edu.au/", lib = "/usr/local/lib/R/site-library/")
	#For EU builds
	#install.packages(i, repos= "http://stat.ethz.ch/CRAN/", lib = "/usr/local/lib/R/site-library/") 
	#For US builds
	install.packages(i, repos= "http://cran.rstudio.com/", lib = "/usr/local/lib/R/site-library/") 
	output <- paste("Finished installing",i,sep=" ")
	print(output)
}

q()

core <- c("classInt", "DCluster", "deldir", "geoR", "gstat", "maptools",
"RandomFields", "raster", "RColorBrewer", "rgdal", "sp", "spatstat",
"spdep", "splancs","spgrass6", "rgeos","ncdf", "RSAGA")

#optional <- c("ade4", "adehabitat", "adehabitatHR", "adehabitatHS", "adehabitatLT", "adehabitatMA", "ads", "akima", "ash", "aspace", "automap", "CircSpatial", "clustTool", "CompRandFld", "constrainedKriging", "cshapes", "diseasemapping", "DSpat", "ecespa", "fields", "FieldSim", "gdistance", "Geneland", "GEOmap", "geomapdata", "geonames", "geoRglm", "geosphere", "GeoXp", "glmmBUGS", "gmaps", "gmt", "Guerry", "hdeco", "intamap", "mapdata", "mapproj", "maps", "MarkedPointProcess", "MBA", "ModelMap", "ncf", "nlme", "pastecs", "PBSmapping", "PBSmodelling", "psgp", "ramps", "RArcInfo", "regress", "RgoogleMaps", "RPyGeo", "RSurvey", "rworldmap", "sgeostat", "shapefiles", "sparr", "spatcounts", "spatgraphs", "spatial", "spatialCovariance", "SpatialExtremes", "spatialkernel", "spatialsegregation", "spBayes", "spcosa", "spgwr", "sphet", "spsurvey", "SQLiteMap", "Stem", "tgp", "trip", "tripack", "tripEstimation", "UScensus2000", "vardiag", "vegan") 

#non-spatial <- c("RPostgresql","RSQLite","RODBC")

packagelist <- core

for (i in packagelist) {
	#Generic Version followed by Australian Repos
	#install.packages(i, repos= "http://cran.r-project.org", lib = "/usr/local/lib/R/site-library/" , dependencies = TRUE)
	#For AU builds	
	#install.packages(i, repos= "http://cran.ms.unimelb.edu.au/", lib = "/usr/local/lib/R/site-library/")
	#For EU builds
	#install.packages(i, repos= "http://stat.ethz.ch/CRAN/", lib = "/usr/local/lib/R/site-library/") 
	#For US builds
	install.packages(i, repos= "http://cran.rstudio.com/", lib = "/usr/local/lib/R/site-library/") 
	output <- paste("Finished installing",i,sep=" ")
	print(output)
}

q()
