% Generated by roxygen2: do not edit by hand % Please edit documentation in R/util.R \name{pkg_file_lua} \alias{pkg_file_lua} \title{Get the full paths of Lua filters in an R package} \usage{ pkg_file_lua(filters = NULL, package = "rmarkdown") } \arguments{ \item{filters}{A character vector of filenames for Lua filters to be retrieved in \file{rmarkdown/lua} folder of the package. By default (\code{NULL}), if none is provided, it returns all filters in that folder.} \item{package}{The name of the package in which to look for the filters.} } \value{ A character vector of absolute file paths for the Lua filter from the package. The returned paths have been processed by \code{\link{pandoc_path_arg}()}, so they are ready to be used by Pandoc. } \description{ Lua filters stored in a source package in the \file{inst/rmarkdown/lua} directory will be installed to the \file{rmarkdown/lua} directory in the package path. This function finds the full paths of the Lua filters in the installed packages. } \examples{ # list all Lua filters stored in the rmarkdown package pkg_file_lua() # get a specific filter pkg_file_lua(c("pagebreak.lua", "latex_div.lua")) }