R/utils-md.R

Defines functions load_rmd_report include_help

Documented in include_help load_rmd_report

#' Include Markdown help
#'
#' @param ... Character vector specifying directory and or file to
#'     point to inside the current package.
#'
include_help <- function(...) {
  withMathJax(
    includeMarkdown(
      system.file("app/help", ..., package = "biodosetools")
    )
  )
}

#' Load RMarkdown report
#'
#' @param ... Character vector specifying directory and or file to
#'     point to inside the current package.
#'
load_rmd_report <- function(...) {
  system.file("app/reports", ..., package = "biodosetools")
}
biodosimetry-uab/biodosetools documentation built on Jan. 26, 2024, 5:36 p.m.