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

undebuggable error #2853

Closed
shug0131 opened this issue Feb 7, 2025 · 5 comments
Closed

undebuggable error #2853

shug0131 opened this issue Feb 7, 2025 · 5 comments

Comments

@shug0131
Copy link

shug0131 commented Feb 7, 2025

I'm trying to use pkgdown. But it keeps comming up with the same errors for my vignettes

> pkgdown::build_article(name="test")
Reading vignettes/test.Rmd
Error in `pkgdown::build_article()`:
! Failed to render vignettes/test.Rmd.
✖ Error compiling template "/tmp/RtmpRyZJG1/pkgdown-rmd-template-1ac59d21b39.html" (line 41, column
  72):
✖ unexpected "`"
✖ expecting ".", "/", "(", ":", "[" or "$"
Caused by error:
! pandoc document conversion failed with error 5
Run `rlang::last_trace()` to see where the error occurred.

Here's my test.Rmd file

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

# Title

I know nathing


@shug0131
Copy link
Author

shug0131 commented Feb 7, 2025

It's always line 41, column 72, regardless of the input file.

"pkgdown-rmd-template-1ac59d21b39.html"

gets deleted as soon as the command fails. So I can't look at it.

The help function pages all do get built correctly. So pkgdown is working, installed,

@jayhesselberth
Copy link
Collaborator

I recommend you delete that file and start with a fresh vignette with usethis::use_vignette("test") and go from there.

I'm not sure what the pandoc error is, do you have pandoc installed?

@shug0131
Copy link
Author

Thanks for the suggestion. I just tried that and exactly the same error. I have pandoc installed

rstudio@d727dee59d21:~/Documents/GitHub/cctu$ pandoc --version
pandoc 3.6
Features: +server +lua
Scripting engine: Lua 5.4
User data directory: /home/rstudio/.local/share/pandoc
Copyright (C) 2006-2024 John MacFarlane. Web: https://pandoc.org
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.

@shug0131
Copy link
Author

I managed to get the github actions to start (ssh and PAT from inside a docker image are tricky) but it fails with a very similar error

https://github.com/cam-ctu/cctu/actions/runs/13240004829/job/36953050726

@jayhesselberth
Copy link
Collaborator

Please try to create a simpler, reproducible example to help debug this issue.

https://pkgdown.r-lib.org/CONTRIBUTING.html#package-reprexes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants