revealjs_presentation 在 R 中:代码和输出

revealjs_presentation in R: code and out put

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

我的代码:

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

是我的选项有问题吗?

尝试添加另一张具有 "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.
```