Package: envar 0.1.1

Andrea Simoncini

envar: Download and Process Environmental Variables

Provides a unified interface to download, harmonise and extract a wide range of environmental and socio-economic variables from established open data web services (such as 'WorldClim' <https://www.worldclim.org/>, 'CHELSA' <https://chelsa-climate.org/> and 'Bio-ORACLE' <https://www.bio-oracle.org/>, among others) for use in macroecology and biogeography. The package handles spatial subsetting to a study area, reprojection to a common coordinate reference system, and extraction of values at sampling points, so that predictors from heterogeneous sources can be assembled within a single reproducible workflow. Helper functions for collinearity checking and variable exploration are also included.

Authors:Andrea Simoncini [aut, cre], Michele Bertoncini [aut], Andrea Cerofolini [aut], Andrea Dalpasso [aut], Mattia Falaschi [aut], Gentile Francesco Ficetola [aut], Elia Lo Parrino [aut]

envar_0.1.1.tar.gz
envar_0.1.1.zip(r-4.7-any)envar_0.1.1.zip(r-4.6-any)envar_0.1.1.zip(r-4.5-any)
envar_0.1.1.tgz(r-4.6-any)envar_0.1.1.tgz(r-4.5-any)
envar_0.1.1.tar.gz(r-4.7-any)envar_0.1.1.tar.gz(r-4.6-any)
envar_0.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
envar/json (API)

# Install 'envar' in R:
install.packages('envar', repos = c('https://animalbiodiversitylab.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/animalbiodiversitylab/envar/issues

Pkgdown/docs site:https://animalbiodiversitylab.github.io

Datasets:

On CRAN:

Conda:

biogeographyconservationdistribution-modellingecologyenvironmentmacroecologyprioritizationsdmvariablevariable-selection

6.67 score 3 stars 23 scripts 374 downloads 30 exports 74 dependencies

Last updated from:989ff1df52. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK257
source / vignettesOK295
linux-releaseOK257
macos-releaseOK283
macos-oldrelOK235
windows-develOK230
windows-releaseOK198
windows-oldrelOK238
wasm-releaseOK136

Exports:%>%accessibilityariditybiooraclechelsaclear_cacheclimatezonescloudcovercorr_checkearthenvlandcoverextr_checkfreshwatergcamlandcovergdppastgeososlandcoverhabitatheterogeneityhybridlandcovermelcmetadatapar_setpftlandcoverpopulationprotectionroadssoilsoilclimatespectretopographyworldclim

Dependencies:abindalphahullaskpassclassclassIntclicorrplotcpp11curlDBIdeldirdigestdplyre1071farverfsgenericsggplot2gluegtablehttrinterpisobandjsonliteKernSmoothlabelinglatticelifecyclemagrittrMatrixmimeopensslpbapplypillarpkgconfigpolyclipproxyR.methodsS3R.ooR.utilsR6rangeBuilderrasterRColorBrewerRcppRcppEigenrlangrnaturalearths2S7scalessfsgeostatspspatstat.dataspatstat.geomspatstat.randomspatstat.sparsespatstat.univarspatstat.utilssplancsstringisystensorterratibbletidyselectunitsusdmutf8vctrsviridisLitewithrwk

Species distribution modelling
Introduction | Occurrence points | Background points | Predictors | Model tuning | Prediction in the Alps | Conclusion | Appendix: A runnable mini-example | References

Last update: 2026-08-20
Started: 2025-12-17

Package overview
1. Introduction | 2. Load the package | 3. Set study area | 3.1. Global data | 3.1.1. Single layer | 3.1.2. Multiple layers with different extents | 3.2. Country/continent | 3.2.1. Country | 3.2.2. Continent | 3.2.3. Set the scale | 3.3. Ecological boundary | 3.3.1. Ecoregions | 3.3.2. Zoogeographic regions | 3.3.3. Mountain regions | 3.3.4. CMEC mountain regions | 3.3.5. Glacier regions | 3.3.6. Freshwater ecoregions | 3.3.7. Marine regions | 3.4. Custom shapefile | 3.4.1. Points | 3.4.2. Polygon | 3.5. Data frame of points | 3.6. Buffer | 3.6.1. Apply a buffer to a shape | 3.6.2. Apply a buffer when using points | 3.7. Further options | 3.7.1. Land mask | 3.7.2. Species range | 4. Project to another reference system | 5. Aggregate to a different resolution | 6. Correlation check | 6.1. Add a correlation check when retrieving rasters | 6.2. Add a correlation check when using points | 7. Extrapolation check | 7.1. With rasters | 7.2. With points | 8. Set NAs | 9. Save results | 9.1. Save results as raster | 9.2. Save results as table | 10. Conclusion | 11. Appendix: A runnable mini-example | 12. References

Last update: 2026-08-05
Started: 2025-11-26

Variables
Introduction | Load package | Climate | CHELSA | WorldClim | Climate zones | Cloud cover | Aridity | Land cover | EarthEnv land cover | Macroecological Land Cover | Hybrid land cover | GeoSOS land cover | PFT land cover | GCAM land cover | Landscape heterogeneity | Habitats | Soil characteristics | Harmonized World Soil Database | Soil climate | Topography | Freshwater environments | Marine environments | Human impact | SPECTRE | Accessibility | GDP past | Population | Roads | Protected areas | IUCN protected areas | Conclusion | Appendix: A runnable mini-example | References

Last update: 2026-08-05
Started: 2025-12-17

Get started
Package aims | First use: installation | Load the library | Full working example | Output overview | Conclusion | Appendix: A runnable mini-example | References

Last update: 2026-07-22
Started: 2025-11-26

Readme and manuals

Help Manual

Help pageTopics
Download and process Global Accessibility Indicatorsaccessibility
Alpine regionAlps
Apollo butterfly occurrencesApollo
Download and process Global Aridity Index and Potential Evapotranspiration (ET0)aridity
Download Bio-ORACLE marine databiooracle
Download CHELSA climate datachelsa
Clear the envar download cacheclear_cache
Download and process Köppen-Geiger climate classification mapsclimatezones
Download and process EarthEnv Global Cloud Cover layerscloudcover
Check Variable Correlation and Multi-collinearitycorr_check
Download and process EarthEnv land cover variablesearthenvlandcover
EuropeEurope
Check for Environmental Extrapolationextr_check
Download and process EarthEnv Freshwater Environmental Variablesfreshwater
Download and process Global Future Land Use/Cover layers (2020-2100)gcamlandcover
Download and process Historical Real GDP and Electricity Consumptiongdppast
Download and process Global Simulation Land Use/Cover (GEOSOS) 1 km variablesgeososlandcover
Download and process IUCN Habitat Classification layershabitat
Download and process EarthEnv habitat heterogeneity layersheterogeneity
Download and process Hybrid Global Annual 1-km IGBP Land Cover Mapshybridlandcover
Download and process MacroEcological Land Cover (MELC)melc
Store a Provenance Summary of an `envar` Pipelinemetadata
Initialize the Environmental Variable Retrieval Pipelinepar_set
Download and process Global PFT Land Cover Projections (SSPs-RCPs)pftlandcover
Download and process Global Population Projections (SSP)population
Download and process WDPA Protected Area layersprotection
Download and process Global Road Density layersroads
Download and process Harmonized World Soil Database v2.0soil
Download and process Soil Bioclimatic and Temperature layerssoilclimate
Download and process SPECTRE environmental threat layersspectre
Download and process EarthEnv Topography layerstopography
Download and process WorldClim Climate Data (Historical & Future)worldclim