Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

...

Arguments passed to tlmgr().

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

# running the code below will modify your texmf tree; please do not run
# unless you know what it means

# 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)

tinytex

Helper Functions to Install and Maintain TeX Live, and Compile LaTeX Documents

v0.31
MIT + file LICENSE
Authors
Yihui Xie [aut, cre, cph] (<https://orcid.org/0000-0003-0645-5666>), RStudio, PBC [cph], Christophe Dervieux [ctb] (<https://orcid.org/0000-0003-4474-2498>), Devon Ryan [ctb] (<https://orcid.org/0000-0002-8549-0971>), Ethan Heinzen [ctb], Fernando Cagua [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.