Nothing
test_that("Skip", {
foo <- function(){
e("Problem")
}
bar <- function(){
x <- foo()
y <- 1
skip(y, x)
return(1)
}
baz <- function(){
x <- bar()
y <- w("Caution")
skip(y, w = TRUE)
}
nothing <- function(){
x <- 1L
skip(x)
x
}
testthat::expect_equal(nothing(), 1L)
testthat::expect_s3_class(bar(), "Error")
testthat::expect_s3_class(baz(), "Warning")
})
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.