R/utils-mocks.R

Defines functions require_namespace is_interactive

# Sort functions by type or use the alphabetical order.
# This functions were created to be used with the `mockr` package.

is_interactive <- function(...) {
    interactive()
}

require_namespace <- function(x, ..., quietly = TRUE) {
    requireNamespace(x, ..., quietly = quietly)
}
gipsousp/sqlr documentation built on Sept. 29, 2023, 11:41 a.m.