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"), ...)
}

Try the rmdpartials package in your browser

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

rmdpartials documentation built on July 2, 2020, 3:22 a.m.