FR: Auto-detect Quarto's bundled pandoc as fallback
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start with the CLI entry point mentioned, btw_tool_docs_help_page, and inspect how it checks rmarkdown::pandoc_available(). Verify the proposed macOS, Windows, and Linux Quarto paths, then confirm that a detected bundled pandoc is made available for the session without changing the existing error when none is found.
Written by the indexing model from the issue text.
Description
(Potential upstream issue.)
Hi folks.
I just ran into this error on a new laptop, whilst calling some of the btw help documentation tools (e.g., btw_tool_docs_help_page) from the CLI:
Mcp error: -32603: pandoc is required and was not found (see the help page ?rmarkdown::pandoc_available).
The error is obvious enough; I didn't have pandoc installed as a "standalone" binary and available on my PATH (via my package manager). OTOH it's not the full truth, since I do have Quarto installed and this obviously bundles its own pandoc. I can imagine that other users are in a similar boat and this made me think that having a fallback option to / check for Quarto pandoc would be a useful feature.
What do you think about adding automatic detection of Quarto's bundled pandoc as a fallback when rmarkdown::pandoc_available() returns FALSE? Specifically, we could check common Quarto installation paths:
- macOS:
/Applications/quarto/bin/tools/pandoc - Windows:
~/AppData/Local/Programs/Quarto/bin/tools/pandoc - Linux:
/opt/quarto/bin/tools/pandoc
If found we could set Sys.setenv(RSTUDIO_PANDOC = <path>) to make it available to rmarkdown during this session?
- Dominant language
- R
- Stars
- 150
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from posit-dev/btw
-
Difficulty 4/5 1-2 days Newbie friendliness 25/100
-
Codemode: MCP and tools via the run R toolMay be free again @gadenbuie claimed this 58 days ago, and no pull request is open. Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
documentation
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
documentation
Difficulty 4/5 3-5 days Newbie friendliness 52/100
-
documentation
Difficulty 4/5 3-5 days Newbie friendliness 68/100
Similar issues
-
num_ode_rk4_adaptive rejects atol = 0 while accepting rtol = 0 and while num_ode_dopri5 accepts bothOpenarea/ode-pde good first issue help wanted kind/contract severity/4-minor
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Apich-Organization/rssn#383 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PRL-PRG/r-compile-server#70 · 1 comment ·
-
dependencies docker enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
posit-dev/images-workbench#257 ·
Maintainers usually reply within 1 day
-
dependencies docker enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
posit-dev/images-package-manager#188 ·
Maintainers usually reply within 1 day
-
dependencies docker enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
posit-dev/images-connect#222 ·
Maintainers usually reply within 1 day