Support the Quarto knitr engine when deploying content

未关闭 适合新手
#786 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
冷清
技术栈
python, r
领域
cli

调研方向

从 rsconnect/actions.py 中的 validate_quarto_engines 开始,跟踪当前的引擎验证流程,然后检查 rsconnect/main.py 中的四个 Quarto 入口点及其现有的 jupyter 和 markdown 分支。以现有入口点和相关检查为指导,确认使用 knitr 的 Quarto 内容部署能够正常工作,包括清单写入以及没有 Python 环境的情况。

由索引模型根据 Issue 内容生成。

描述

Goal

Allow content using the Quarto knitr engine to be deployed and to have a
manifest written. Today validate_quarto_engines (rsconnect/actions.py) accepts
only markdown and jupyter and rejects everything else, including knitr.

Why

knitr is the default Quarto engine for documents that mix R and Python chunks.
Now that rsconnect-python can carry R dependencies from renv.lock, the original
reason for excluding knitr no longer applies, so the rejection blocks a case
the tool can otherwise handle. Raised in review:
https://github.com/posit-dev/rsconnect-python/pull/785#discussion_r3431999679

References

  • rsconnect/actions.py (validate_quarto_engines) — the engine allowlist.
  • rsconnect/main.py — the four Quarto entry points already branch on
    "jupyter" in engines and handle the no-Python-environment case (markdown).
  • renv.lock R-dependency support: PR: support for parsing renv.lock #785
主要语言
Python
星标
37
派生
28
平均合并
1 天 3 小时
30 天内合并 PR
7

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

posit-dev/rsconnect-python 的其他 Issue

查看 posit-dev/rsconnect-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。