Skip to content

Commit d82d227

Browse files
committed
GBIF and IUCN Red List
1 parent 9ec4752 commit d82d227

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

vignettes/GBIF-and-IUCN-Red-List.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ The workflow combines spatial filtering of occurrence data with automated querie
2424

2525
We begin by loading the required packages. The `rgbif` package provides access to GBIF data, `redlist` interfaces with the IUCN Red List API, and `sf` handles spatial operations. The `dplyr` and `ggplot2` packages support data manipulation and visualization respectively.
2626

27-
```{r setup, echo=FALSE, warning=FALSE, message=FALSE}
27+
```{r setup, warning=FALSE, message=FALSE}
2828
# Define required packages
2929
packages <- c("rgbif", "redlist", "sf", "dplyr", "ggplot2")
3030
3131
# Install missing packages and load all
3232
for (pkg in packages) {
3333
if (!requireNamespace(pkg, quietly = TRUE)) {
34-
install.packages(pkg, repos = "https://packagemanager.posit.co/cran/latest")
34+
install.packages(pkg, repos = "https://packagemanager.posit.co/cran/latest", dependencies = TRUE)
3535
}
3636
library(pkg, character.only = TRUE)
3737
}

0 commit comments

Comments
 (0)