Supply RSTUDIO_PANDOC to packaging tasks, including R Markdown render #3856
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Several beta users have already reported trouble rendering documents with Positron because the render tasks can't find Pandoc, even though it ships with Positron.
This change supplies the
RSTUDIO_PANDOC
environment variable when running packaging tasks and R Markdown rendering jobs. It's done using the same logic we use to supplyRSTUDIO_PANDOC
to the main R session.Addresses #3776.
QA Notes
The embedded Pandoc is only used when there's no other Pandoc on the
$PATH
. To test this, uninstall all your Pandocies (make surewhich pandoc
returns nothing) first so that only the bundled Pandoc is available.This also touches the code that injects Pandoc into the main R session, so make sure e.g.
rmarkdown::pandoc_version()
still works there.