我正在将Rpres
HTML5演示文稿(
a new feature of Rstudio)保存为PDF文档,作为演示文稿(如建议
here)
问题在于,即使在RStudio提供的基本演示示例中,该输出看起来在pdf中混乱.
如何重新创建问题 – 将其从RStudio中复制到新的.Rpres文件,或者打开新的文件 – >新档案 – > R介绍:
test ======================================================== author: date: First Slide ======================================================== For more details on authoring R presentations click the **HelP** button on the toolbar. - Bullet 1 - Bullet 2 - Bullet 3 Slide With Code ======================================================== ```{r} summary(cars) ``` Slide With Plot ======================================================== ```{r,echo=FALSE} plot(cars) ```
在RStudio中,单击预览 – >在浏览器中查看
在Google Chrome中,右键点击 – >打印…将生产the following messy pdf
解决方法
目前,RStudio并没有为Rpresentations打印CSS.
As per RStudio support reply here,他们正在寻找添加功能,将其直接保存为RStudio.在此期间,Pandoc是要走的路.
编辑2014年5月12日
同时在RStudio中实现了PDF制作演示.您可以以横向格式获得漂亮的PDF,带有控件以在幻灯片之间导航. Download preview version 0.98.836 or higher from here.然后点击:
文件 – >新档案 – > R Markdown – >演示 – >默认输出格式= PDF(Beamer)