R/run_documentation.R

Defines functions run_documentation

Documented in run_documentation

#' @title Run Documentation
#'
#' @description This function determines if the examples are being run in pkgdown. It is not meant to be called by the user.
#'
#' @export
#'
#' @return Boolean value.
#' @examples
#' # See if the documentation should be run.
#' run_documentation()
run_documentation = function() {
  return(identical(Sys.getenv("IN_PKGDOWN"), "true"))
}
tylermorganwall/rayimage documentation built on Feb. 6, 2025, 1:30 a.m.