1
0
mirror of https://github.com/msberends/AMR.git synced 2025-03-13 14:03:02 +01:00

Compare commits

..

2 Commits

Author SHA1 Message Date
55457d0ab6 v1.7.0 2021-05-25 10:00:11 +02:00
d0f38a03d5 v1.7.0 2021-05-24 15:29:31 +02:00
2 changed files with 13 additions and 1 deletions
docs/articles/AMR_files/header-attrs-2.8
inst/tinytest

@ -0,0 +1,12 @@
// Pandoc 2.9 adds attributes on both header and div. We remove the former (to
// be compatible with the behavior of Pandoc < 2.8).
document.addEventListener('DOMContentLoaded', function(e) {
var hs = document.querySelectorAll("div.section[class*='level'] > :first-child");
var i, h, a;
for (i = 0; i < hs.length; i++) {
h = hs[i];
if (!/^h[1-6]$/i.test(h.tagName)) continue; // it should be a header h1-h6
a = h.attributes;
while (a.length > 0) h.removeAttribute(a[0].name);
}
});

@ -45,7 +45,7 @@ expect_equal(summary(as.rsi(c("S", "R"))),
"- %S" = "50.0% (n=1)", "- %S" = "50.0% (n=1)",
"- %I" = " 0.0% (n=0)"), class = c("summaryDefault", "table"))) "- %I" = " 0.0% (n=0)"), class = c("summaryDefault", "table")))
expect_identical(as.logical(lapply(example_isolates, is.rsi.eligible)), expect_identical(as.logical(lapply(example_isolates, is.rsi.eligible)),
rep(FALSE, length(example_isolates))) as.logical(lapply(example_isolates, is.rsi)))
expect_error(as.rsi.mic(as.mic(16))) expect_error(as.rsi.mic(as.mic(16)))
expect_error(as.rsi.disk(as.disk(16))) expect_error(as.rsi.disk(as.disk(16)))
expect_error(get_guideline("this one does not exist")) expect_error(get_guideline("this one does not exist"))