# NOT RUN {
if (FALSE) skip("No internet connection")
## The following are only meaningful when put in test files and
## run with `test_file`, `test_dir`, `test_check`, etc.
test_that("skip example", {
expect_equal(1, 1L) # this expectation runs
skip('skip')
expect_equal(1, 2) # this one skipped
expect_equal(1, 3) # this one is also skipped
})
# }
Run the code above in your browser using DataCamp Workspace