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

'Error: Failed to render RMarkdown' in pkgdown GitHub action #1379

Closed
ngreifer opened this issue Aug 17, 2020 · 3 comments
Closed

'Error: Failed to render RMarkdown' in pkgdown GitHub action #1379

ngreifer opened this issue Aug 17, 2020 · 3 comments
Labels
articles ✍️ bug an unexpected problem or unintended behavior

Comments

@ngreifer
Copy link

I'm using pkgdown to make a website for my package, cobalt. The website is up and running, but when I push to GitHub, the pkgdown test fails with the following error:

── Building articles ───────────────────────────────────────────────────────────
Writing 'articles/index.html'
Reading 'vignettes/cobalt_A0_basic_use.Rmd'
Writing 'articles/cobalt_A0_basic_use.html'
Reading 'vignettes/cobalt_A1_other_packages.Rmd'
##[error]Error: Failed to render RMarkdown

This looks like it's an issue with my Appendix 1 vignette, but the Rmarkdown seems to render just fine locally (using knit in RStudio) and on the package website itself. There doesn't seem to be anything unusual about the block of code where it appears to error. Thanks for your help.

@hadley hadley added articles ✍️ bug an unexpected problem or unintended behavior labels Aug 20, 2020
@hadley hadley closed this as completed in 60d1b4a Aug 20, 2020
@hadley
Copy link
Member

hadley commented Aug 20, 2020

I've made a fix to the development version — it's unlikely to actually resolve the problem, but it at least now prints the complete RMarkdown error instead of just the first 1000 characters. That will hopefully allow you to figure out what's going on.

@ngreifer
Copy link
Author

Thanks for doing that. I was able to see the full error, and it was this:

Loading required package: tcltk
##[error]Error: package or namespace load failed for 'tcltk':
 .onLoad failed in loadNamespace() for 'tcltk', details:
  call: fun(libname, pkgname)
  error: X11 library is missing: install XQuartz from xquartz.macosforge.org
Quitting from lines 308-315 (cobalt_A1_other_packages.Rmd) 
Error : package 'tcltk' could not be loaded

Not sure how this can be resolved within the GitHub Action environment.

@kpj
Copy link

kpj commented Jan 19, 2021

@ngreifer: r-lib/actions#78 (comment) might be the solution you're looking for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
articles ✍️ bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants