Skip to content

Commit

Permalink
feat: modify exploration of page 1
Browse files Browse the repository at this point in the history
since frontiers have been removed from tm_draw, need to display
frontiers in static maps #67
  • Loading branch information
PMHLambert committed Mar 21, 2023
1 parent f6d4d1b commit f31678b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ data-raw/translation.Rmd
dev/translation.html
dev/data-docker/
bdd_connect.sh
/data-raw/*.html
10 changes: 4 additions & 6 deletions data-raw/bb-page1-catch-bycatch.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ knitr::opts_chunk$set(
```{r setup}
# Sys.setenv("POSTGRES_USER" = "diadesatlas_owner")
# Sys.setenv("POSTGRES_PASS" = "thinkrpassword")
pkgload::load_all(here::here())
pkgload::load_all(here::here()) # simulate installation and give access to objects in the package
library(dplyr)
session <- shiny::MockShinySession$new() #new.env()
connect(session)
Expand All @@ -40,17 +40,15 @@ Sys.setenv(
# Liste des espèces

```{r}
get_active_species(
species <- get_active_species(
session = session
)
species
```

## Conservation status

```{r}
species <- get_active_species(
session = session
)
for (i in species$species_id) {
cli::cat_rule(i)
print(
Expand Down Expand Up @@ -118,7 +116,7 @@ tm1 <- tm_draw(
ices_geom = datasets$ices_geom,
session = session
)
tm1
diades.atlas::tm_frontiers +tm1
# tmap_leaflet(tm1)
```

Expand Down

0 comments on commit f31678b

Please sign in to comment.