Skip to content

Commit

Permalink
debug attempt 3 - test coverage
Browse files Browse the repository at this point in the history
suppressing messages to avoid

+ Message
+   Registered S3 method overwritten by 'rmutil':
+     method         from
+     print.response httr
  • Loading branch information
david-barnett committed Jun 6, 2024
1 parent d75b075 commit 5bfdb53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/dist_calc.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# unifrac distances work

Code
dist_get(dist_calc(esophagus, dist = "gunifrac"))
suppressMessages(dist_get(dist_calc(esophagus, dist = "gunifrac")))
Output
B C
C 0.4404284
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-dist_calc.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ test_that("unifrac distances work", {
local_edition(3)
# GUniFrac 1.5 did not have verbose argument (relevant for R 3.6 checks)
skip_if(packageVersion("GUniFrac") < "1.6")
expect_snapshot(dist_get(dist_calc(esophagus, dist = 'gunifrac')))
expect_snapshot(suppressMessages(dist_get(dist_calc(esophagus, dist = 'gunifrac'))))
expect_snapshot(dist_get(dist_calc(esophagus, dist = 'unifrac')))
expect_snapshot(dist_get(dist_calc(esophagus, dist = 'wunifrac')))
# since GUniFrac 1.8, variance-adjusted unifrac appears to have been dropped
Expand Down

0 comments on commit 5bfdb53

Please sign in to comment.