r-hub / rhub

R-hub API client
https://r-hub.github.io/rhub/
Other
353 stars 52 forks source link

rhub::check_for_cran fails on Windows environment with pdf vignette #556

Closed GFabien closed 6 months ago

GFabien commented 1 year ago

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")
gregfrog commented 1 year ago

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

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

Error: Vignette re-building failed. Execution halted

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

Type X to quit or 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

gaborcsardi commented 6 months ago

This issue is about the previous R-hub system, it does not apply to the new system, so I am closing it now. Please see https://r-hub.github.io/rhub/ for the new system, R-hub v2.