Skip to content

helper for installing latex packages required when building R from source? #135

Description

@kevinushey

By filing an issue to this repo, I promise that

  • I have fully read the issue guide at https://yihui.name/issue/.
  • I have provided the necessary information about my issue.
    • If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
    • If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('tinytex'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('yihui/tinytex').
    • If I have posted the same issue elsewhere, I have also mentioned it in this issue.
  • I have learned the Github Markdown syntax, and formatted my issue correctly.

I understand that my issue may be closed if I don't fulfill my promises.


Would you be willing to provide a helper function for installing the latex packages required when building R + recommended packages from source? For example, I had to install ae + parskip when building the utils + parallels vignettes.

Alternatively, perhaps:

https://github.com/yihui/tinytex/blob/07cea7ffb0e04b1f78a7b20192b279a7f35a3793/R/install.R#L301-L305

could be exported, since I think your collection of packages covers everything needed by R + the base / recommended packages.

Activity

  1. yihui commented on Jul 23, 2019

    @yihui
    Collaborator

    I can certainly export that function (perhaps need to rename it :). The package names in pkgs-yihui.txt were collected from my experience of building vignettes of the huge amount of reverse dependencies of knitr/rmarkdown, etc. These are more than what an average user need, but I guess it is very worthwhile wasting a few megabytes of disk space compared to figuring out the required LaTeX packages from the error logs.

    I haven't tried to build R from source since I created tinytex, so I don't know exactly which LaTeX packages are required. The total size of ae and parskip is about 650k when installed. Not too bad. Perhaps I should just add them to the default installation.

  2. yihui commented on Jul 25, 2019

    @yihui
    Collaborator

    I thought a while about this and just documented it on the homepage: https://yihui.name/tinytex/#for-r-users instead of exporting the function since this function is very unlikely to be used by other developers in their packages, which means ::: is probably fine.

  3. kevinushey commented on Jul 25, 2019

    @kevinushey
    Author

    That sounds good to me as well. Thanks!

  4. added a commit that references this issue on Sep 14, 2024
    776345c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions