If a package has been installed in TinyTeX or TeX Live, the command tlmgr info PKG should return PKG where PKG is the package name.

check_installed(pkgs)

Arguments

pkgs

A character vector of LaTeX package names.

Value

A logical vector indicating if packages specified in pkgs are installed.

Note

This function only works with LaTeX distributions based on TeX Live, such as TinyTeX.

Examples

if (FALSE) { # interactive()
tinytex::check_installed('framed')
}