GarrettLab / HabitatConnectivity

geohabnet R package
https://garrettlab.github.io/HabitatConnectivity/
GNU General Public License v3.0
7 stars 4 forks source link

check for libraries #12

Closed AaronPlex closed 1 year ago

AaronPlex commented 1 year ago

Could you check for which libraries are necessary to run the cropland connectivity analysis? For example, dismo is currently present in the code, but no function from this package is probably used.

krishnakeshav commented 1 year ago

Good point. This can even bring down the overall usage of memory and time to download packages during runtime.

AaronPlex commented 1 year ago

I found the following packages listed with a # are not used during the code at all. Raster, igraph, rworldmap, geosphere, colorspace and viridis are essential for this code. We can consider removing the libraries that are not essential (#).

library(raster)

library(rgdal)

library(expm)

library(igraph)

library(maptools)

library(rrcov)

library(splines)

library(rworldmap)

library(mapdata)

library(sp)

library(maps)

library(rgeos)

library(geosphere)

library(RColorBrewer)

data("countriesLow") library("colorspace") library(viridis)

krishnakeshav commented 1 year ago

Details here - #15 @AaronPlex