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 000000000..af1a14c77 Binary files /dev/null and b/data/jup_pkgs.rda differ diff --git a/man/jup_pkgs.Rd b/man/jup_pkgs.Rd new file mode 100644 index 000000000..b8e6b1258 --- /dev/null +++ b/man/jup_pkgs.Rd @@ -0,0 +1,38 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/jup_pkgs.R +\docType{data} +\name{jup_pkgs} +\alias{jup_pkgs} +\title{Additional tinytex packages needed for rendering of PDFs in Jupyter} +\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} +} +\usage{ +jup_pkgs +} +\description{ +These 16 TexLive packages are required to allow for rendering of PDFs in +Jupyter when tinytex is used to install LaTeX. +} +\keyword{datasets}