R/pkg.R

Defines functions pkg_file pkg_version pkg_name

#' @import vctrs shiny
#' @keywords internal
#' @importFrom rlang abort warn inform
NULL

pkg_name <- function(env = parent.frame()) {
  utils::packageName(env)
}

pkg_version <- function(pkg = pkg_name()) {
  utils::packageVersion(pkg)
}

pkg_file <- function(...) {
  system.file(..., package = pkg_name())
}

Try the blockr.core package in your browser

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

blockr.core documentation built on June 8, 2025, 1:43 p.m.