trim <- function(x) gsub("^\\s+|\\s+$", "", x)
######### tests ########
context("Text")
test_that("regress", {
# result <-
# res1 <- capture.output(summary(result))[10] %>% trim
# cat(paste0(res1, "\n"))
# res2 <- "carat 8438.030 51.101 165.125 < .001 ***"
# expect_equal(res1,res2)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.