Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdflatex is not available #32

Closed
bschilder opened this issue Dec 16, 2022 · 3 comments
Closed

pdflatex is not available #32

bschilder opened this issue Dec 16, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@bschilder bschilder added the bug Something isn't working label Dec 16, 2022
@bschilder bschilder self-assigned this Dec 16, 2022
@bschilder
Copy link
Collaborator Author

bschilder commented Dec 17, 2022

Potential solutions

Linux

https://gist.github.com/rain1024/98dd5e2c6c8c28f9ea9d

sudo apt-get install texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra

Mac

https://superuser.com/a/1416736
https://gist.github.com/bschilder/af3960b7d7b911274198e3febae535a9

brew install basictex texlive 

Also condensed brew install calls into just two calls, to reduce overhead.

Windows

https://github.com/r-lib/actions/tree/v2/setup-tinytex

      - uses: r-lib/actions/setup-tinytex@v2
 

@NathanSkene
Copy link

NathanSkene commented Dec 17, 2022 via email

@bschilder
Copy link
Collaborator Author

bschilder commented Dec 20, 2022

Finally got this working by adding some new steps to rworkflows action:

- name: Install latex

Took some troubleshooting with the authors of r-lib/setup-tinytex:
r-lib/actions#670
r-lib/actions#671

The culprit was ultimately BiocStyle::latex, which requires certain latex libraries but doesn't seem to install them or check that they exist first. I've fixed this semi-manually, but really this should probably be handled by BiocStyle so users don't run into issues with dependencies that are unknown to the user until they start digging deep into the documentation and researching latex.

Had a convo with the BiocStyle group to see if there's a way it can install the necessary latex libs, or at least have a function that gives users to list of all latex dependencies:
Bioconductor/BiocStyle#69
Bioconductor/BiocStyle#15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants