From a738b87f954766e989e8da926e8b1071f5d2f5d1 Mon Sep 17 00:00:00 2001 From: ttimbers Date: Thu, 30 Jul 2020 15:30:47 -0700 Subject: [PATCH] added list of tlmgr packages to install as data --- .Rbuildignore | 1 + DESCRIPTION | 6 +++++- R/jup_pkgs.R | 26 ++++++++++++++++++++++++++ data-raw/jup_pkgs.R | 22 ++++++++++++++++++++++ data/jup_pkgs.rda | Bin 0 -> 190 bytes man/jup_pkgs.Rd | 38 ++++++++++++++++++++++++++++++++++++++ 6 files changed, 92 insertions(+), 1 deletion(-) create mode 100644 R/jup_pkgs.R create mode 100644 data-raw/jup_pkgs.R create mode 100644 data/jup_pkgs.rda create mode 100644 man/jup_pkgs.Rd diff --git a/.Rbuildignore b/.Rbuildignore index af1423281..11b6d6210 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -7,3 +7,4 @@ ^codecov\.yml$ ^TinyTeX\.zip$ ^.github$ +^data-raw$ diff --git a/DESCRIPTION b/DESCRIPTION index 16ccf15bb..ac6ad57f7 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -14,7 +14,9 @@ Description: Helper functions to install and maintain the 'LaTeX' distribution portable, and easy-to-maintain version of 'TeX Live'. This package also contains helper functions to compile 'LaTeX' documents, and install missing 'LaTeX' packages automatically. -Imports: xfun (>= 0.5) +Imports: + xfun (>= 0.5), + usethis (>= 1.6.1) Suggests: testit, rstudioapi License: MIT + file LICENSE URL: https://github.com/yihui/tinytex @@ -22,3 +24,5 @@ BugReports: https://github.com/yihui/tinytex/issues Encoding: UTF-8 LazyData: true RoxygenNote: 7.1.1 +Depends: + R (>= 2.10) diff --git a/R/jup_pkgs.R b/R/jup_pkgs.R new file mode 100644 index 000000000..d601a3ffb --- /dev/null +++ b/R/jup_pkgs.R @@ -0,0 +1,26 @@ +#' Additional tinytex packages needed for rendering of PDFs in Jupyter +#' +#' These 16 TexLive packages are required to allow for rendering of PDFs in +#' Jupyter when tinytex is used to install LaTeX. +#' +#' @format A vector with 16 package names: +#' \describe{ +#' \item{adjustbox}{} +#' \item{caption}{} +#' \item{collectbox}{} +#' \item{enumitem}{} +#' \item{environ}{} +#' \item{eurosym}{} +#' \item{jknapltx}{} +#' \item{parskip}{} +#' \item{pgf}{} +#' \item{rsfs}{} +#' \item{tcolorbox}{} +#' \item{titling}{} +#' \item{trimspaces}{} +#' \item{ucs}{} +#' \item{ulem}{} +#' \item{upquote}{} +#' } +#' @source \url{https://github.com/yihui/tinytex/issues/228} +"jup_pkgs" diff --git a/data-raw/jup_pkgs.R b/data-raw/jup_pkgs.R new file mode 100644 index 000000000..e1599332c --- /dev/null +++ b/data-raw/jup_pkgs.R @@ -0,0 +1,22 @@ +## code to prepare `jup_pkgs` dataset goes here + +jup_pkgs <- c( + "adjustbox", + "caption", + "collectbox", + "enumitem", + "environ", + "eurosym", + "jknapltx", + "parskip", + "pgf", + "rsfs", + "tcolorbox", + "titling", + "trimspaces", + "ucs", + "ulem", + "upquote" +) + +usethis::use_data(jup_pkgs, overwrite = TRUE) diff --git a/data/jup_pkgs.rda b/data/jup_pkgs.rda new file mode 100644 index 0000000000000000000000000000000000000000..af1a14c7788e668f0030bf298c2e9d7a336b8088 GIT binary patch literal 190 zcmV;v073skT4*^jL0KkKSzg$8r2qg`?|}U9KmZT`1ON~~zrX)r00AHXk`YIw^q5AT zkWW)I6Vz`~3`tK@X_O4q@`j9qCNv-(i9aLOzyY;E1(y1)G0B4^%1?d~0LXw40V5g s^X(*6;R9(=e$3FqOnI(qx)B-YlxOCw#B6?*h7|rT