R/knit_child_debug.R

Defines functions knit_child_debug

Documented in knit_child_debug

#' Get some debugging information on various potential problems when making partials
#'
#'
#' @param ... passed to [partial()]
#'
#' @return Returns markdown/HTML text with class "knit_asis"
#'
#' @export
#' @examples
#' if(!requireNamespace("pkgdown", quietly = TRUE) || !pkgdown::in_pkgdown()) {
#' knit_child_debug()
#' }
knit_child_debug <- function(...) {
  needs_preview <- needs_preview()
  is_interactive <- is_interactive()
  partial(require_file("inst/_debug.Rmd"), ...)
}
rubenarslan/rmarkdownpartials documentation built on June 10, 2020, 11:17 p.m.