tinytex (version 0.13)

r_texmf: Add/remove R's texmf tree to/from TeX Live

Description

R ships a custom texmf tree containing a few LaTeX style and class files, which are required when compiling R packages manuals (Rd.sty) or Sweave documents (Sweave.sty). This tree can be found under the directory file.path(R.home('share'), 'texmf'). This function can be used to add/remove R's texmf tree to/from TeX Live via tlmgr_conf('auxtrees').

Usage

r_texmf(action = c("add", "remove"))

Arguments

action

Add/remove R's texmf tree to/from TeX Live.

References

See the tlmgr manual for detailed information about tlmgr conf auxtrees. Check out https://tex.stackexchange.com/q/77720/9128 if you don't know what texmf means.

Examples

Run this code
# NOT RUN {
r_texmf("remove")
r_texmf("add")

# all files under R's texmf tree
list.files(file.path(R.home("share"), "texmf"), recursive = TRUE, full.names = TRUE)
# }

Run the code above in your browser using DataCamp Workspace