Skip to content

Commit

Permalink
Update testthat version so GitHub Actions hopefully works
Browse files Browse the repository at this point in the history
  • Loading branch information
zenalapp committed Nov 17, 2023
1 parent 68dda9b commit 94e0568
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/_snaps/bistro.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <simpleMessage>
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.
Expand All @@ -25,7 +25,7 @@

Code
bistro(bm_evid1, hu_p1, calc_allele_freqs = TRUE, kit = "ESX17", peak_thresh = 200)
Message <simpleMessage>
Message
Formatting bloodmeal profiles
Removing 4 peaks under the threshold of 200 RFU.
Formatting human profiles
Expand All @@ -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 <simpleMessage>
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.
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/calc_log10_lrs.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
Code
calc_log10_lrs(bm_profs, hu_profs, pop_allele_freqs = pop_allele_freqs, kit = "ESX17",
peak_thresh = 200)
Message <simpleMessage>
Message
# bloodmeal ids: 2
# human ids: 1
Bloodmeal id 1/2
Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/_snaps/match_similarity.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Code
match_similarity(bm_profs, hu_profs)
Message <simpleMessage>
Message
Calculating human-human similarities
Maximum similarity between people: 0.5
Calculating bloodmeal-human similarities
Expand All @@ -19,7 +19,7 @@

Code
match_similarity(bloodmeal_profiles, human_profiles)
Message <simpleMessage>
Message
Calculating human-human similarities
Maximum similarity between people: 0.117647058823529
Calculating bloodmeal-human similarities
Expand All @@ -37,7 +37,7 @@

Code
match_similarity(bloodmeal_profiles, human_profiles, return_similarities = TRUE)
Message <simpleMessage>
Message
Calculating human-human similarities
Maximum similarity between people: 0.117647058823529
Calculating bloodmeal-human similarities
Expand Down Expand Up @@ -75,7 +75,7 @@

Code
match_similarity(bloodmeal_profiles, human_profiles, peak_thresh = 200)
Message <simpleMessage>
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
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/preprocess_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Code
prep_bloodmeal_profiles(bloodmeal_profiles, bloodmeal_ids = "evid1",
peak_thresh = 200)
Message <simpleMessage>
Message
Removing 4 peaks under the threshold of 200 RFU.
Output
# A tibble: 48 x 4
Expand Down Expand Up @@ -66,7 +66,7 @@
Code
rm_twins(dplyr::bind_rows(human_profiles, dplyr::mutate(dplyr::filter(
human_profiles, SampleName == "P1"), SampleName = "Pdup")))
Message <simpleMessage>
Message
Identified 2 people whose profiles appear more than once (likely identical twins). These are being removed.
Output
# A tibble: 63 x 3
Expand Down

0 comments on commit 94e0568

Please sign in to comment.