tests/testthat/examples/testpkg.altdoc/R/examplesIf_true.R

#' Examples If TRUE
#'
#' @param x A parameter
#'
#' @return Some value
#' @export
#'
#' @examplesIf 2 + 2 == 4
#' examplesIf_true()
examplesIf_true <- function() {
  print("Hello, world!")
}

Try the altdoc package in your browser

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

altdoc documentation built on April 3, 2025, 10:52 p.m.