inst/doc/writing_custom_examples.R

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

## ----eval = FALSE-------------------------------------------------------------
# #' @examplesx
# #'
# #' @caption Showcasing the first functionality of `fun()` (`arg1`)
# #'
# #' @info This is the detailed text for the first example.
# #'
# #' @code
# #'
# #' fun(arg1 = TRUE)
# #'
# #' @caption Showcasing the second functionality of `fun()` (`arg2`)
# #'
# #' @info This is the detailed text for the first example.
# #'
# #' @code
# #'
# #' fun(arg2 = FALSE)

Try the admiraldev package in your browser

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

admiraldev documentation built on Jan. 14, 2026, 9:09 a.m.