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

Running 'texi2dvi' failed #670

Closed
bschilder opened this issue Dec 17, 2022 · 5 comments
Closed

Running 'texi2dvi' failed #670

bschilder opened this issue Dec 17, 2022 · 5 comments

Comments

@bschilder
Copy link

bschilder commented Dec 17, 2022

Describe the bug
https://github.com/neurogenomics/GenomicRanges/actions/runs/3718719179/jobs/6307099463#step:4:2827

After running the r-lib/actions/setup-tinytex action as a step in my rworkflows action, a LaTeX error occurs when running "texi2dvi". Specifically the "beramono.sty" file is not found. This occurs during the rcmdcheck step.

Error: processing vignette 'GenomicRangesHOWTOs.Rnw' failed with diagnostics:
Running 'texi2dvi' on 'GenomicRangesHOWTOs.tex' failed.
LaTeX errors:
! LaTeX Error: File `beramono.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
! Emergency stop.
<read *> 
         
l.87 \RequirePackage
                    [T1]{fontenc}^^M
!  ==> Fatal error occurred, no output PDF file produced!
--- failed re-building ‘GenomicRangesHOWTOs.Rnw’
--- re-building ‘Ten_things_slides.Rnw’ using Sweave
--- finished re-building ‘Ten_things_slides.Rnw’
SUMMARY: processing the following files failed:
  ‘ExtendingGenomicRanges.Rnw’ ‘GenomicRangesHOWTOs.Rnw’
Error: Vignette re-building failed.
Execution halted
Error in proc$get_built_file() : Build process failed
Calls: <Anonymous> ... build_package -> with_envvar -> force -> <Anonymous>
Execution halted
Error: Process completed with exit code 1.

To Reproduce
Render any .rnw file on a GHA VM using the .
In my case, I ran the rworkflows action on a fork of GenomicRanges:
https://github.com/neurogenomics/GenomicRanges

This error occurs even when I use the full prebuilt version of TinyTeX:
https://github.com/neurogenomics/rworkflows/blob/56c3f2d60014455052417682250b5f26864a2487/action.yml#L181

- name: Install latex
  uses: r-lib/actions/setup-tinytex@v2 
  env:
       # install full prebuilt version
       TINYTEX_INSTALLER: TinyTeX

Expected behavior
All latex-related libs necessary for rendering Sweave (.rnw) R documentation are installed and exported by r-lib/actions/setup-tinytex.

Some of my attempts to fix this are documented here:
neurogenomics/rworkflows#32

Thanks!,
Brian

@bschilder bschilder added the bug an unexpected problem or unintended behavior label Dec 17, 2022
@gaborcsardi
Copy link
Member

...
! LaTeX Error: File `beramono.sty' not found.
...

You probably need extra CTAN packages, see the manual: https://github.com/r-lib/actions/tree/v2-branch/setup-tinytex#ctan-packages

@gaborcsardi gaborcsardi removed the bug an unexpected problem or unintended behavior label Dec 17, 2022
@gaborcsardi
Copy link
Member

gaborcsardi commented Dec 17, 2022

Maybe https://ctan.org/pkg/bera ?

@bschilder
Copy link
Author

Thanks @gaborcsardi ! wil give it a try. Perhaps I'm misunderstanding the goal of r-lib/actions/setup-tinytex, but is it not to setup all packages necessary to render R documentation? I can't find anything in the .rnw file to suggest it's doing any unusual, simply uses the BiocStyle::latex(use.unsrturl=FALSE) style. If we can figure out a solution I'd be happy to make a PR to ensure that all CRAN/Bioc documentation can be rendered without additional troubleshooting.

Regarding installing bera, Windows doesn't seem to recognize tlmgr. Do these instructions only work on specific platforms? Will document as a new issue as it's a bit divergent from this one.

@gaborcsardi
Copy link
Member

I don't know what tinytex installs by default. If you think it should bundle/install more packages, please see the tinytex docs to report an issue at them.

@github-actions
Copy link

github-actions bot commented Jan 2, 2023

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this issue

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants