Skip to contents

Calls stop() (for non-Shiny contexts) or shiny::showNotification() (inside download handlers) when no LaTeX distribution is found.

Usage

require_latex(notify = FALSE)

Arguments

notify

Logical. If TRUE, shows a Shiny error notification instead of calling stop(). Use TRUE inside Shiny download handler content functions.

Value

Invisibly NULL when LaTeX is available. Otherwise either stops or shows a notification, then returns invisible(FALSE).