FR: Auto-detect Quarto's bundled pandoc as fallback
还没有人认领这个 Issue。
评估
调研方向
从提到的 CLI 入口点 btw_tool_docs_help_page 开始,检查它如何检查 rmarkdown::pandoc_available()。验证针对 macOS、Windows 和 Linux 提出的 Quarto 路径,然后确认检测到的捆绑 pandoc 会在当前会话中可用,同时在未找到任何 pandoc 时不改变现有错误。
由索引模型根据 Issue 内容生成。
描述
(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?
- 主要语言
- R
- 星标
- 150
- 派生
- 13
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
posit-dev/btw 的其他 Issue
-
难度 4/5 1-2 天 新手友好度 25/100
-
Codemode: MCP and tools via the run R tool可能重新可做 @gadenbuie 于 58 天前认领,目前没有进行中的 PR。 未关闭
难度 5/5 一周以上 新手友好度 25/100
-
documentation
难度 4/5 3-5 天 新手友好度 48/100
-
documentation
难度 4/5 3-5 天 新手友好度 52/100
-
documentation
难度 4/5 3-5 天 新手友好度 68/100
相似的 Issue
-
num_ode_rk4_adaptive rejects atol = 0 while accepting rtol = 0 and while num_ode_dopri5 accepts both未关闭area/ode-pde good first issue help wanted kind/contract severity/4-minor
难度 2/5 1-3 小时 新手友好度 78/100
Apich-Organization/rssn#383 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
PRL-PRG/r-compile-server#70 · 1 条评论 ·
-
dependencies docker enhancement
难度 2/5 1-3 小时 新手友好度 74/100
posit-dev/images-workbench#257 ·
维护者通常 1 天内回复
-
dependencies docker enhancement
难度 2/5 1-3 小时 新手友好度 72/100
posit-dev/images-package-manager#188 ·
维护者通常 1 天内回复
-
dependencies docker enhancement
难度 2/5 1-3 小时 新手友好度 68/100
posit-dev/images-connect#222 ·
维护者通常 1 天内回复