R/ricu.R

Defines functions release_questions pkg_env pkg_name is_pkg_installed

#' @keywords internal
#' @importFrom data.table setattr setcolorder set setnames
#' @importFrom data.table setDT setDF fifelse rbindlist data.table
#' @importFrom data.table := .SD .EACHI .I %chin% as.data.table copy
#' @importFrom data.table first last
#' @importFrom stats setNames na.omit median sd var
#' @importFrom utils str head tail
#' @importFrom cli cat_line cat_rule cat_bullet symbol no qty
#' @importFrom rlang !!
#' @import vctrs
"_PACKAGE"

is_pkg_installed <- function(pkg) requireNamespace(pkg, quietly = TRUE)

pkg_name <- function() methods::getPackageName()

pkg_env <- function() asNamespace(pkg_name())

release_questions <- function() {
  c(
    "Have you updated the vignette cache by running `build_vignettes()`?"
  )
}
septic-tank/ricu documentation built on Jan. 30, 2021, 8:40 p.m.