rhub icon indicating copy to clipboard operation
rhub copied to clipboard

rhub::check_for_cran fails on Windows environment with pdf vignette

Open GFabien opened this issue 2 years ago • 1 comments

Hey! First, thank you for the package and the service to test R packages!

Before submitting our package to the CRAN, we tried to make it pass the tests on R-hub. We faced a problem with the Windows environment when using rhub::check_for_cran(): "Error(s) in re-building vignettes". Making modifications until the error disappeared, we realized there was an error as soon as the type of the vignette was a pdf. We did not manage to reproduce the error locally on a Windows machine.

Reproducible example

The following vignette causes the error "Error(s) in re-building vignettes" when running rhub::check_for_cran().

---
title: "Foo"
output: pdf_document
vignette: >
  %\VignetteIndexEntry{Foo}
  %\VignetteEngine{knitr::rmarkdown}
  %\VignetteEncoding{UTF-8}
---

```{r}
print("Hello world")
```

GFabien avatar Apr 25 '23 14:04 GFabien

have run into the same problem: vignette build works on local windows, but the RHub Windows server builds fail. Fails on Windows Server 2022 R Release and Windows Server 2022, R-devel, 64 bit (Failed to locate 'texi2pdf'), and generates a Note on Ubuntu Linux 20.04.1 LTS, R-release, GCC (missing pdfpages.sty) and a warning on Fedora Linux, R-devel, clang, gfortran (missing html tidy). At the very least these environments are configured differently

Platform: | Windows Server 2022, R-release, 32/64 bit

  • checking re-building of vignette outputs ... ERROR Error(s) in re-building vignettes: ... --- re-building 'performance.Rnw' using Sweave Warning in system(paste(shQuote(texi2dvi), if (quiet) "--quiet" else "", : running command '"C:\PROGRA~1\MiKTeX\miktex\bin\x64\texify.exe" --quiet --pdf "performance.tex" --max-iterations=20 -I "C:/PROGRA~1/R/R-43~1.0/share/texmf/tex/latex" -I "C:/PROGRA~1/R/R-43~1.0/share/texmf/bibtex/bst"' had status 1 Error: processing vignette 'performance.Rnw' failed with diagnostics: Failed to locate 'texi2pdf' output file 'performance.pdf' for vignette with name 'performance' and engine 'utils::Sweave'. The following files exist in working directory 'C:\Users\USERfUNxJHeKCd\WebAnalytics.Rcheck\vign_test\WebAnalytics\vignettes': 'performance.Rnw' (316 bytes), 'performance.aux' (8 bytes), 'performance.log' (7255 bytes), 'performance.tex' (337 bytes), 'performanceoptimisation.pdf' (1.63656e+06 bytes) --- failed re-building 'performance.Rnw'

SUMMARY: processing the following file failed: 'performance.Rnw'

Error: Vignette re-building failed. Execution halted

Platform: | Fedora Linux, R-devel, clang, gfortran

  • checking re-building of vignette outputs ... WARNING Error(s) in re-building vignettes: ... --- re-building ‘performance.Rnw’ using Sweave Error: processing vignette 'performance.Rnw' failed with diagnostics: Running 'texi2dvi' on 'performance.tex' failed. LaTeX errors: ! LaTeX Error: File `pdfpages.sty' not found.

Type X to quit or <RETURN> to proceed, or enter new name. (Default extension: sty)

! Emergency stop. <read *>

l.7 \usepackage {Sweave}^^M ! ==> Fatal error occurred, no output PDF file produced! --- failed re-building ‘performance.Rnw’

SUMMARY: processing the following file failed: ‘performance.Rnw’

Error: Vignette re-building failed. Execution halted

Ubuntu Linux 20.04.1 LTS, R-release, GCC

  • checking HTML version of manual ... NOTE Skipping checking HTML validation: no command 'tidy' found

gregfrog avatar Jun 25 '23 00:06 gregfrog