R/utils-roxygen2.R

Defines functions should_run_example

Documented in should_run_example

#' Should we run this emodnet.wfs example?
#'
#' Determines whether we are in pkgdown or in an interactive session.
#' Do not use it in your own package!
#'
#' @return A Boolean indicating whether to run the example.
#'
#' @export
#' @examples
#' should_run_example()
should_run_example <- function() {
    identical(Sys.getenv("IN_PKGDOWN"), "true") || interactive()
}

Try the emodnet.wfs package in your browser

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

emodnet.wfs documentation built on Aug. 8, 2025, 6:20 p.m.