R/run_documentation.R

Defines functions run_docs_raybevel

Documented in run_docs_raybevel

#' @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_docs_raybevel()
run_docs_raybevel = function() {
  return(identical(Sys.getenv("IN_PKGDOWN"), "true") && 
         length(find.package("ggplot2",quiet = TRUE)) > 0 &&
         length(find.package("spData",quiet = TRUE)) > 0)
}

Try the raybevel package in your browser

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

raybevel documentation built on April 4, 2025, 2:42 a.m.