【问题标题】:Cannot turn on code folcing in githubu documents in r markdown无法在 r markdown 中打开 githubu 文档中的代码跟踪
【发布时间】:2021-04-29 11:28:17
【问题描述】:

大家好,我想在我的 .Rmd 文档中包含一个用于代码折叠的用户切换。我正在使用输出:github_document,我发现可以使用 html_documents (as described here) 执行此操作,但是当我将命令包含在我的 github_document 中时出现错误...

---
title: "example"
author: "this guy"
date: "20/01/2021"
output:
  github_document:
    code_folding: hide
---

编织文档会导致错误。

Error in (function (toc = FALSE, toc_depth = 3, number_sections = FALSE,  : 
  unused argument (code_folding = "hide")
Calls: <Anonymous> -> create_output_format -> do.call
Execution halted

我是缺少一个包还是它在 .Rmd 文件期间无法用于 github_documents?

【问题讨论】:

    标签: github r-markdown


    【解决方案1】:

    目前github_document()格式不支持代码折叠。

    【讨论】:

      猜你喜欢
      • 2020-03-14
      • 1970-01-01
      • 2019-10-13
      • 1970-01-01
      • 2019-04-13
      • 2014-05-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多