-
Notifications
You must be signed in to change notification settings - Fork 91
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
RSTUDIO_PANDOC
env var is not propagated to terminal process (like for r.rmarkdownRender
)
#3776
Comments
I think the problem here is that |
Related to #2723 which is another example of an env var from the main process not being propagated to a terminal process. |
Has the same problem |
If someone wants to get unstuck in the short term, I think the solution is to install Pandoc yourself (vs. only having the version that ships inside RStudio). For example, on macOS, you might do |
@jennybc it worked thanks! |
RSTUDIO_PANDOC
env var is not propagated to terminal process (like for r.rmarkdownRender
)
…#3856) 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 supply `RSTUDIO_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 sure `which 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.
Verified FixedPositron Version(s) : 2024.07.0-21 Test scenario(s)RMD document renders as expected. Note - couldn't check on Windows due to #3816 Link(s) to TestRail test cases run or created:None |
Positron Version:
Positron Version: 2024.06.1 (Universal) build 27
Code - OSS Version: 1.90.0
Commit: a893e5b
Date: 2024-06-26T02:08:06.673Z (5 days ago)
Electron: 29.4.0
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin arm64 23.5.0
Steps to reproduce the issue:
I'm trying to render the classic Rmd template from RStudio with a word output, saved as a .Rmd file using the "Render Document with R Markdown" command:
That's the output:
Note in the lower-right, the rmd file is read as quarto. Shouldn't it be Rmarkdown? Is there some setting to flag/official extension to install or the association is automatic?
What did you expect to happen?
Rendering the doc.
Were there any error messages in the output or Developer Tools console?
Checking for pandoc:
The text was updated successfully, but these errors were encountered: