tests/testthat/test-roclet.R

source("../fns.R")

test_that("roclet", {
  wd <- getwd()
  pkg <- create_tmp_package()
  setwd(pkg)
  on.exit({
    setwd(wd)
    delete_tmp_package(pkg)
  })

  scaffold()
  use_sass()
  expect_message(
    roxygen2::roxygenise(roclets = "leprechaun::build_roclet")
  )
})

Try the leprechaun package in your browser

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

leprechaun documentation built on Jan. 19, 2022, 5:08 p.m.