Skip to content

Commit

Permalink
solve checklist issues
Browse files Browse the repository at this point in the history
  • Loading branch information
janneadolf committed Oct 9, 2024
1 parent 7f82140 commit dbcfc5a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
8 changes: 8 additions & 0 deletions inst/en_gb.dic
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,26 @@ AFW
BEP
BUI
Fase
Faxonius
GEV
IAS
IRR
Janne
Muntiacus
Muntjac
PrIUS
Procambarus
REL
SPO
Subsubsection
VER
clarkii
gemeentengrenzen
gewest
gis
inbo
reevesi
unionlist
virilis
vlaanderen
vrgb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ names <- get(
# make (temporary) selection
names_tmp <- names |>
dplyr::filter(
grepl("Muntiacus reevesi|Faxonius virilis|Procambarus clarkii", scientificName)
grepl(
"Muntiacus reevesi|Faxonius virilis|Procambarus clarkii",
scientificName
)
)
#
# create section rmds
Expand Down Expand Up @@ -45,7 +48,6 @@ for (i in seq_along(names_tmp[[1]])) {
#
# change first headline
rmd_tmp <- readLines(con = file_i)
rmd_tmp [1] <- paste("#", name_full_i)
rmd_tmp[1] <- paste("#", name_full_i)
writeLines(text = rmd_tmp, con = file_i)
}

10 changes: 7 additions & 3 deletions source/report/formal/species_overview/master.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ knitr::opts_chunk$set(echo = TRUE)
```{r child-documents, echo = FALSE, results = 'asis'}
sections_list <- list.files(path = "sections", full.names = TRUE)
children_list <- vector(mode = "list", length = length(sections_list))
for (i in 1:3) {
children_list[[i]] <- knitr::knit_child(sections_list[[i]], quiet = TRUE, envir = environment())
for (i in seq_along(sections_list)) {
children_list[[i]] <- knitr::knit_child(
sections_list[[i]],
quiet = TRUE,
envir = environment()
)
}
cat(unlist(children_list), sep = '\n')
cat(unlist(children_list), sep = "\n")
```
6 changes: 3 additions & 3 deletions source/report/formal/species_overview/trackdown_upload.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (FALSE) googledrive::drive_auth() # make sure to tick all boxes
if (FALSE) googledrive::drive_user() # check user
#
#
# ---upload to g-drive----------------------------------------------------------------------
# ---upload to g-drive------------------------------------------------------
#
# upload section rmd files (files already uploaded are skipped)
files_list <- list.files(
Expand Down Expand Up @@ -44,14 +44,14 @@ try(
)
#
#
# ---download from g-drive ----------------------------------------------------------------------
# ---download from g-drive -------------------------------------------------
#
if (FALSE) {
trackdown::download_file()
}
#
#
# ---update on g-drive----------------------------------------------------------------------
# ---update on g-drive------------------------------------------------------
#
if (FALSE) {
trackdown::update_file()
Expand Down

0 comments on commit dbcfc5a

Please sign in to comment.