tests/testthat/test_puzzle.R

testthat::context("Test puzzle functionality")
testthat::test_that("Check if puzzle was properly installed",{
  testthat::expect_output(str(as.data.frame(puzzle::df_pk_start)), "12 obs")
})

Try the puzzle package in your browser

Any scripts or data that you put into this service are public.

puzzle documentation built on Dec. 1, 2019, 1:15 a.m.