From df3f3f1abc8707073dc37655825af267a0e77507 Mon Sep 17 00:00:00 2001 From: markus1bauer Date: Sat, 27 Apr 2024 01:10:37 +0200 Subject: [PATCH] Update --- .github/workflows/data-tests.yaml | 6 +++--- R/CI_1_Generate_reports.R | 12 ------------ 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/data-tests.yaml b/.github/workflows/data-tests.yaml index df80620..d8293fc 100644 --- a/.github/workflows/data-tests.yaml +++ b/.github/workflows/data-tests.yaml @@ -9,12 +9,12 @@ on: paths: - 'data**' - '!README.md' - - 'R/ci_1_generate_reports.R' + - 'R/CI_1_Generate_reports.R' pull_request: paths: - 'data**' - '!README.md' - - 'R/ci_1_generate_reports.R' + - 'R/CI_1_Generate_reports.R' # Name the workflow as it will appear on GA status page # https://github.com/SCBI-ForestGEO/SCBImortality/actions @@ -50,7 +50,7 @@ jobs: - name: Generate reports id: Generate_reports run: | - source("R/ci_1_generate_reports.R") + source("R/CI_1_Generate_reports.R") shell: Rscript {0} # Commit and push all new files, where commits are assigned to GA bot: diff --git a/R/CI_1_Generate_reports.R b/R/CI_1_Generate_reports.R index a373e3b..725f71a 100644 --- a/R/CI_1_Generate_reports.R +++ b/R/CI_1_Generate_reports.R @@ -314,15 +314,3 @@ ggsave( here("tests", "testthat", "reports_missing_traits.png"), dpi = 300, height = 10, units = "cm" ) - - -# ### Check that each species occurs at least one time ### -# group_by(name) %>% -# arrange(name) %>% -# select(name, tidyselect::all_of(sites$id)) %>% -# mutate( -# total = sum(c_across( -# starts_with("L") | starts_with("W")), -# na.rm = TRUE), -# presence = if_else(total > 0, 1, 0) -# )