当我在演示开始时用---保存xaringan幻灯片时,必须在xaringan::inf_mr()刷新查看面板并更新更改之前删除它们。以下示例应有助于创建这种情况:
(1)创建.Rmd文件。
---
title: "Presentation Ninja"
date: "2016/12/12 (updated: `r Sys.Date()`)"
output:
xaringan::moon_reader:
lib_dir: libs
nature:
highlightStyle: github
highlightLines: true
countIncrementalSlides: false
---
layout: true
background-image: url(https://github.com/yihui/xaringan/releases/download/v0.0.2/karl-moustache.jpg)
background-position: 91% 94%
background-size: 185px
<!-- Must have this break below -->
---
```{r setup, include=FALSE}选项(htmltools.dir.version= FALSE)
# Test slide
Testing
---
# Test slide 2
Testing
---
# Test slide 3
Testing(2)现在我使用xaringan::inf_mr()运行Rmd文件.当我这样做时,查看器将不会刷新,除非我现在注释/删除,而不保存---
---
title: "Presentation Ninja"
date: "2016/12/12 (updated: `r Sys.Date()`)"
output:
xaringan::moon_reader:
lib_dir: libs
nature:
highlightStyle: github
highlightLines: true
countIncrementalSlides: false
---
layout: true
background-image: url(https://github.com/yihui/xaringan/releases/download/v0.0.2/karl-moustache.jpg)
background-position: 91% 94%
background-size: 185px
<!-- Commented Out Now -->
<!-- --- -->
```{r setup, include=FALSE}选项(htmltools.dir.version= FALSE)
# Test slide
Testing
---
# Test slide 2
Testing
---
# Test slide 3
Testing现在观众将刷新。然而,每次我必须保存Rmd文件,如果我想让查看器工作,我必须取消评论/重新评论这个---。我一定是遗漏了一些很基本的东西,但我不相信其他人报告过这个问题。
以下是有关我的系统的一些其他细节:
R.Version()
$`platform`
[1] "x86_64-w64-mingw32"
$arch
[1] "x86_64"
$os
[1] "mingw32"
$system
[1] "x86_64, mingw32"
$language
[1] "R"
$version.string
[1] "R version 3.5.1 (2018-07-02)"
$nickname
[1] "Feather Spray"-
rstudioapi::versionInfo()
$`mode`
[1] "desktop"
$version
[1] ‘1.2.1237’我的xaringan版本是0.8.15。
如果需要更清晰的信息,请告诉我。
谢谢!
编辑
我在.Rmd文档中添加了以下代码(基于这个维基),这将更好地说明所面临的问题:
layout: true
background-image: url(https://github.com/yihui/xaringan/releases/download/v0.0.2/karl-moustache.jpg)
background-position: 91% 94%
background-size: 185pxhttps://stackoverflow.com/questions/54954406
复制相似问题