inst/doc/special-files.R

## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup--------------------------------------------------------------------
library(testthat)

## ----eval = FALSE-------------------------------------------------------------
#  op <- options(reprex.clipboard = FALSE, reprex.html_preview = FALSE)
#  
#  withr::defer(options(op), teardown_env())

## ----eval = FALSE-------------------------------------------------------------
#  withr::local_options(
#    list(reprex.clipboard = FALSE, reprex.html_preview = FALSE),
#    .local_envir = teardown_env()
#  )

Try the testthat package in your browser

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

testthat documentation built on Oct. 6, 2023, 5:10 p.m.