Dan*_*ian 16 pdf html5 google-chrome r rstudio
我试图将Rpres HTML5演示文稿(Rstudio的一个新功能)保存为PDF文档,它将作为演示文稿讲义(如此处所示)
问题是输出看起来在pdf中搞砸了,即使对于RStudio提供的基本演示示例也是如此.
如何重新创建问题 - 将其从RStudio中复制到新的.Rpres文件,或者只是打开新的File -> New File -> R Presentation:
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)
```
Run Code Online (Sandbox Code Playgroud)
在RStudio中,单击Preview -> View in Browser
Google Chrome内部,right-click -> Print...将产生以下凌乱的pdf
Dan*_*ian 13
目前,RStudio没有为Rpresentations提供打印CSS.根据RStudio支持回复,他们希望添加该功能以直接保存为RStudio.与此同时,Pandoc是要走的路.
编辑2014年5月12日:
同时,PDF制作演示文稿已在RStudio中实施.您可以使用控件在幻灯片之间导航,从而获得横向格式的精美PDF.从这里下载预览版本0.98.836或更高版本.然后点击:
File -> New File -> R Markdown -> Presentation -> Default Output Format = PDF (Beamer)

| 归档时间: |
|
| 查看次数: |
9125 次 |
| 最近记录: |