R中的revealjs_presentation:代码和输出

时间:2018-02-09 13:36:07

标签: css r rstudio markdown reveal.js

我的revealjs_presentation中有问题。我需要显示我的代码和输出。因此需要一个很长的幻灯片,但我有这个:

enter image description here

我的代码:

output:
revealjs::revealjs_presentation:
css: slides.css
theme: night
self_contained: false
incremental: true
transition: none

我的选择有问题吗?

1 个答案:

答案 0 :(得分:0)

尝试使用" slide"添加另一张幻灯片影响。这不是你要求的,但我认为这是唯一的方法:

## Slide 1
```{r, eval=F}
    # (Your plot code)
    # Will show your code whithout evaluation (not dislaying plot)
```

## Slide 2 {data-background-transition="zoom" data-transition="zoom"}

```{r, echo=FALSE, fig.height=6, fig.width=10, fig.align="center"}

    # (Your plot code)
    # Only your plot will be displayed.
```