parse_packages | R Documentation |
Analyze the error messages in a LaTeX log file to figure out the names of
missing LaTeX packages that caused the errors. These packages can be
installed via tlmgr_install()
. Searching for missing packages
is based on tlmgr_search()
.
parse_packages(
log,
text = read_lines(log),
files = detect_files(text),
quiet = rep(FALSE, 3)
)
log |
Path to the LaTeX log file (typically named ‘*.log’). |
text |
A character vector of the error log (read from the file provided
by the |
files |
A character vector of names of the missing files (automatically
detected from the |
quiet |
Whether to suppress messages when finding packages. It should be
a logical vector of length 3: the first element indicates whether to
suppress the message when no missing LaTeX packages could be detected from
the log, the second element indicate whether to suppress the message when
searching for packages via |
A character vector of LaTeX package names.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.