FR: Auto-detect Quarto's bundled pandoc as fallback

オープン
#110 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
r
領域
cli, tooling

調査の方向性

言及されている CLI エントリーポイント btw_tool_docs_help_page から始め、rmarkdown::pandoc_available() をどのように確認しているかを調べてください。提案されている macOS、Windows、Linux 向けの Quarto パスを検証し、検出されたバンドル済みの 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 はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

posit-dev/btw のほかの issue

posit-dev/btw の issue をすべて見る

似ている issue

R の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。