test_that("formatting text entries", expect_identical(
format_text(c("test", " test", " test ", 'test"', "NA", "NaN", "", NA)),
c("test", "test", "test", "test'", NA, NA, NA, NA)))
test_that("formatting integers", expect_identical(
format_int(c(42, "42", "42.0", 42.0, NA)),
c(42, 42, 42, 42, NA)))
test_that("omit na in dataframes", expect_identical(
na_row_omit(data.frame(a = c(1, 2), b = c(3, NA))),
data.frame(a = 1, b = 3)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.