From 94e05689fd1775d98cfdad6316694a8063c0151f Mon Sep 17 00:00:00 2001 From: Zena Lapp Date: Thu, 16 Nov 2023 19:56:21 -0700 Subject: [PATCH] Update testthat version so GitHub Actions hopefully works --- DESCRIPTION | 2 +- tests/testthat/_snaps/bistro.md | 6 +++--- tests/testthat/_snaps/calc_log10_lrs.md | 2 +- tests/testthat/_snaps/match_similarity.md | 8 ++++---- tests/testthat/_snaps/preprocess_data.md | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 9090a71..26d5b79 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -16,7 +16,7 @@ Suggests: knitr (>= 1.43), readr (>= 2.1.4), rmarkdown (>= 2.24), - testthat (>= 3.0.0) + testthat (>= 3.2.0) Config/testthat/edition: 3 Imports: codetools (>= 0.2.19), diff --git a/tests/testthat/_snaps/bistro.md b/tests/testthat/_snaps/bistro.md index 98868b8..68190e1 100644 --- a/tests/testthat/_snaps/bistro.md +++ b/tests/testthat/_snaps/bistro.md @@ -3,7 +3,7 @@ Code bistro(data.frame(bm_evid1), data.frame(hu_p1), pop_allele_freqs = pop_allele_freqs, kit = "ESX17", peak_thresh = 200) - Message + Message 1/17 markers in kit but not in pop_allele_freqs: AMEL Formatting bloodmeal profiles Removing 4 peaks under the threshold of 200 RFU. @@ -25,7 +25,7 @@ Code bistro(bm_evid1, hu_p1, calc_allele_freqs = TRUE, kit = "ESX17", peak_thresh = 200) - Message + Message Formatting bloodmeal profiles Removing 4 peaks under the threshold of 200 RFU. Formatting human profiles @@ -47,7 +47,7 @@ Code bistro(bm_evid1, human_profiles, pop_allele_freqs = pop_allele_freqs, kit = "ESX17", peak_thresh = 200, return_lrs = TRUE) - Message + Message 1/17 markers in kit but not in pop_allele_freqs: AMEL Formatting bloodmeal profiles Removing 4 peaks under the threshold of 200 RFU. diff --git a/tests/testthat/_snaps/calc_log10_lrs.md b/tests/testthat/_snaps/calc_log10_lrs.md index 61ace31..bdc9da3 100644 --- a/tests/testthat/_snaps/calc_log10_lrs.md +++ b/tests/testthat/_snaps/calc_log10_lrs.md @@ -62,7 +62,7 @@ Code calc_log10_lrs(bm_profs, hu_profs, pop_allele_freqs = pop_allele_freqs, kit = "ESX17", peak_thresh = 200) - Message + Message # bloodmeal ids: 2 # human ids: 1 Bloodmeal id 1/2 diff --git a/tests/testthat/_snaps/match_similarity.md b/tests/testthat/_snaps/match_similarity.md index 220a105..54b68a9 100644 --- a/tests/testthat/_snaps/match_similarity.md +++ b/tests/testthat/_snaps/match_similarity.md @@ -2,7 +2,7 @@ Code match_similarity(bm_profs, hu_profs) - Message + Message Calculating human-human similarities Maximum similarity between people: 0.5 Calculating bloodmeal-human similarities @@ -19,7 +19,7 @@ Code match_similarity(bloodmeal_profiles, human_profiles) - Message + Message Calculating human-human similarities Maximum similarity between people: 0.117647058823529 Calculating bloodmeal-human similarities @@ -37,7 +37,7 @@ Code match_similarity(bloodmeal_profiles, human_profiles, return_similarities = TRUE) - Message + Message Calculating human-human similarities Maximum similarity between people: 0.117647058823529 Calculating bloodmeal-human similarities @@ -75,7 +75,7 @@ Code match_similarity(bloodmeal_profiles, human_profiles, peak_thresh = 200) - Message + Message Removing 6 peaks under the threshold of 200 RFU. For 1/4 bloodmeal ids, all peaks are below the threshold Calculating human-human similarities diff --git a/tests/testthat/_snaps/preprocess_data.md b/tests/testthat/_snaps/preprocess_data.md index 56d71ff..15e8e3d 100644 --- a/tests/testthat/_snaps/preprocess_data.md +++ b/tests/testthat/_snaps/preprocess_data.md @@ -3,7 +3,7 @@ Code prep_bloodmeal_profiles(bloodmeal_profiles, bloodmeal_ids = "evid1", peak_thresh = 200) - Message + Message Removing 4 peaks under the threshold of 200 RFU. Output # A tibble: 48 x 4 @@ -66,7 +66,7 @@ Code rm_twins(dplyr::bind_rows(human_profiles, dplyr::mutate(dplyr::filter( human_profiles, SampleName == "P1"), SampleName = "Pdup"))) - Message + Message Identified 2 people whose profiles appear more than once (likely identical twins). These are being removed. Output # A tibble: 63 x 3