Skip to content

Instantly share code, notes, and snippets.

@remlapmot
Last active March 3, 2022 09:16
Show Gist options
  • Save remlapmot/ba6f1a997302291a39a17cc8c83264b2 to your computer and use it in GitHub Desktop.
Save remlapmot/ba6f1a997302291a39a17cc8c83264b2 to your computer and use it in GitHub Desktop.
Install useful CTAN packages to install in TinyTeX
update.packages(ask = FALSE)
if (!requireNamespace('markdown', quietly = TRUE)) install.packages('markdown')
# if (!requireNamespace('pdftools')) install.packages('pdftools')
if (!requireNamespace('magick', quietly = TRUE)) install.packages('magick')
if (!requireNamespace('kable', quietly = TRUE)) install.packages('kable')
if (!requireNamespace('tinytex', quietly = TRUE)) install.packages('tinytex')
if (!tinytex::is_tinytex()) tinytex::install_tinytex(version = 'latest')
tinytex::tlmgr_install(c('fira',
'firamath',
'beamer',
'beamertheme-metropolis',
'infwarerr',
'kvoptions',
'euenc',
'fontspec',
'unicode-math',
'xunicode',
'pgfopts',
'appendixnumberbeamer',
'biblatex-chicago',
'xstring',
'logreq',
'biblatex',
'biber',
'fancyvrb',
'framed',
'booktabs',
'caption',
'preview',
'epstopdf-pkg',
'hyperref',
'pgf',
'translator',
'xcolor',
'times',
'rsfs',
'skmath',
'orcidlink'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment