Nothing
test_that("vertical_align", {
expect_identical(vertical_align(NULL, NULL), NA_character_)
expect_identical(vertical_align(TRUE, NULL), "superscript")
expect_identical(vertical_align(TRUE, NA), "superscript")
expect_identical(vertical_align(TRUE, FALSE), "superscript")
expect_identical(vertical_align(NULL, TRUE), "subscript")
expect_identical(vertical_align(NA, TRUE), "subscript")
expect_identical(vertical_align(FALSE, TRUE), "subscript")
expect_identical(vertical_align(TRUE, TRUE), "subscript")
expect_identical(
vertical_align(c(TRUE, NA, NA), c(NA, TRUE, NA)),
c("superscript", "subscript", NA_character_)
)
})
test_with_pandoc("as_paragraph_md renders math", {
math = as_paragraph_md("$\\alpha$")[[1L]]$txt
expect_length(math, 1L)
expect_identical(nchar(math), 1L)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.