0

我正在尝试将学习者教程文档的主题从默认的“rstudio”更改为其他内容。我查看了cran 文档,这似乎暗示我可以使用以下任何视觉主题(“rstudio”、“默认”、“cerulean”、“journal”、“flatly”、“可读”、“spacelab” 、“united”、“cosmo”、“lumen”、“paper”、“sandstone”、“simplex”或“yeti”)。这就是我的 YAML 的样子

---
title: "The Negative Binomial Distribution"
output: learnr::tutorial
runtime: shiny_prerendered
---

为了澄清,我想更改整个输出的文档(背景颜色、字体等),而不仅仅是文档的一个特定方面。

4

1 回答 1

1

我不确定您的问题到底是什么,但如果您想应用其中一个主题,您只需添加它,如下例所示:

---
title: "The Negative Binomial Distribution"
output: 
   learnr::tutorial:
       theme: "united" 
runtime: shiny_prerendered
---
于 2021-11-15T21:08:24.963 回答