Convert RStudio presentation (.Rpres) to rmarkdown presentation (.Rmd)

偶尔善良 提交于 2019-12-05 01:27:21

To change from .Rpres to .Rmd you need to change file extension (easy) and the front matter of the markdown document (slightly more involved).

A .Rpres file places the front matter on the first slide:

Untitled
=============================
author: Your Name Here
date: 4 July, 2015

while a .Rmd document places the front matter in a special block:

---
title: "Untitled"
author: "Your Name Here"
date: "04 July, 2015"
output: ioslides_presentation
---

The rest of your presentation code remains in rmarkdown, and should require minimal work to convert.

Some exceptions that I can think of immediately include

  • ioslides/slidify don't support columns via *** (a real shame, as this is so convenient)
  • Rpres doesn't support citations and a bibliography (also a shame)

Additionally, when converting you will need to look for any speciall CSS or other directives that are only supported by one framework.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!