【问题标题】:Is it possible to display code line by line with slidify?是否可以使用 slidify 逐行显示代码?
【发布时间】:2015-09-11 12:23:27
【问题描述】:

出于教学目的,我想逐行显示一些R代码,用于与学生互动的课程。我找到了slidify (ou have to run the video to see what it means at 4'55) 的交互式控制台,但我想知道是否可以隐藏/显示代码或更好地逐行显示代码(选项或动画?)。

我添加了我找到的代码作为下面交互式控制台的演示,但代码出现在交互式控制台中这一事实对我来说并不是一个很高的要求,我只想在完全显示代码后评估它(最好没有为一个练习写多张幻灯片)。

--- &interactive
## Interactive Console

``{r opts.label = 'interactive', results = 'asis'}
require(googleVis)
M1 <- gvisMotionChart(Fruits, idvar = 'Fruit', timevar = 'Year')
print(M1, tag = 'chart')
```

【问题讨论】:

    标签: r animation r-markdown slidify


    【解决方案1】:

    在本教程接近尾声时,对如何顺序显示 R 代码进行了很好的解释,他也发布了代码。

    http://zevross.com/blog/2014/11/19/creating-elegant-html-presentations-that-feature-r-code/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-02-07
      • 1970-01-01
      • 1970-01-01
      • 2015-05-07
      • 2011-01-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多