Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Package installer helper
packs=c("sp","rgdal","gstat","raster","spatstat","maptools","rgeos","tmap","GISTools","rasterVis","spdep","spsurvey")
for(i in 1:length(packs)){
test=packs[i] %in% rownames(installed.packages())
if(test==T){print("package already installed")}else{install.packages(packs[i])}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.