【发布时间】:2021-06-30 03:03:08
【问题描述】:
我使用 JJ Allaire 的revealjs 包(版本 0.9)开发了演示文稿,在 RStudio IDE(版本 1.4.1103.4,平台:x86_64-redhat-linux-gnu(64 位),R 版本 3.6.0)中没有问题。但是,如果我添加插件,在使用源代码发布到 RStudio Connect 时出现以下错误。
Error in (function (incremental = FALSE, center = FALSE, slide_level = 2, :
04/03 14:25:02.921 (GMT)
Using reveal_plugins requires self_contained: false
04/03 14:25:02.921 (GMT)
Calls: local ... <Anonymous> -> create_output_format -> do.call -> <Anonymous>
incremental 和 self-contained 的值在我的 YAML 中分别设置为 TRUE 和 FALSE,因此该错误对我来说没有意义。看来我有两个成功发布的选择:
- 有插件,但没有源代码
- 有源代码,但没有插件
我在下面提供了一个简单的源代码示例。
---
title: "My Title"
author: "Author Name"
date: "`r Sys.Date()`"
output:
revealjs::revealjs_presentation:
incremental: true
self_contained: false
reveal_plugins: ["notes", "chalkboard", "menu"]
link-citations: yes
---
## Slide 1
- Bullet 1
- Bullet 2
我真的很喜欢revealjs,但我很困惑。非常感谢任何帮助。
【问题讨论】:
-
我要么在revealjs repo上提交一个GH问题,要么联系Rstudio支持,因为你是客户。
-
感谢您的评论。我已经创建了一个 GH 问题,并将报告我学到的任何东西。
标签: r slideshow web-publishing