-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmake.R
37 lines (27 loc) · 1.07 KB
/
make.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#' Set up and run the entire project
#'
#' @description
#' Retrieve and clean GBIF Occurrences.
#' Steps:
#' - Find GBIF accepted names & identifiers from a list of taxa names
#' - Download GBIF occurrences
#' - Clean GBIF occurrences
#' - Create a World grid (spatial raster)
#' - Intersect GBIF occurrences w/ a World raster
#' - Compute species range size
#' - Compute species richness
#'
#' @author Nicolas Casajus \email{[email protected]}
#'
#' @date 2024/03/25
## Install Dependencies (listed in DESCRIPTION) ----
devtools::install_deps(upgrade = "never")
## Load Project Addins (R Functions and Packages) ----
devtools::load_all(here::here())
## Run Project ----
source(here::here("analyses", "retrieve_species_gbif_id.R"))
source(here::here("analyses", "download_gbif_occurrences.R"))
source(here::here("analyses", "clean_gbif_occurrences.R"))
source(here::here("analyses", "intersect_gbif_occurrences.R"))
source(here::here("analyses", "compute_species_rangesize.R"))
# source(here::here("analyses", "compute_species_richness.R"))