Lua filters stored in a source package in the inst/rmarkdown/lua
directory will be installed to the rmarkdown/lua
directory in the
package path. This function finds the full paths of the Lua filters in the
installed packages.
pkg_file_lua(filters = NULL, package = "rmarkdown")
filters | A character vector of filenames for Lua filters to be
retrieved in |
---|---|
package | The name of the package in which to look for the filters. |
A character vector of absolute file paths for the Lua filter from the
package. The returned paths have been processed by
pandoc_path_arg()
, so they are ready to be used by Pandoc.
# list all Lua filters stored in the rmarkdown package pkg_file_lua()#> [1] "/data/GHE/deployment/deployments/2021-10-18/renv/library/R-4.1/x86_64-pc-linux-gnu/rmarkdown/rmarkdown/lua/latex-div.lua" #> [2] "/data/GHE/deployment/deployments/2021-10-18/renv/library/R-4.1/x86_64-pc-linux-gnu/rmarkdown/rmarkdown/lua/number-sections.lua" #> [3] "/data/GHE/deployment/deployments/2021-10-18/renv/library/R-4.1/x86_64-pc-linux-gnu/rmarkdown/rmarkdown/lua/pagebreak.lua" #> [4] "/data/GHE/deployment/deployments/2021-10-18/renv/library/R-4.1/x86_64-pc-linux-gnu/rmarkdown/rmarkdown/lua/shared.lua"#> [1] "/data/GHE/deployment/deployments/2021-10-18/renv/library/R-4.1/x86_64-pc-linux-gnu/rmarkdown/rmarkdown/lua/pagebreak.lua"