小编Dav*_*yan的帖子

如何使 RStudio 演示自成一体?

我正在使用 RStudio 在 R 中编写演示文稿。要创建新的演示文稿,我从文件 => 新建文件菜单中选择“R 演示文稿”。RStudio 创建新文档。这是模板:

New Presentation
========================================================
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)

创建演示文稿后,可以将其另存为 HTML。但是,我找不到使其成为独立 HTML 文件的选项。

作为反例,我可以使用 Rmarkdown 创建一个自包含的 HTML 文件:

---
title: "Habits"
output:
    ioslides_presentation:
      mathjax: local
      self_contained: false
---
Run Code Online (Sandbox Code Playgroud)

来源:http : //rmarkdown.rstudio.com/ioslides_presentation_format.html

RStudio R …

r presentation rstudio rpres

5
推荐指数
1
解决办法
1024
查看次数

如何将Shiny fileInput仅限制为文本文件?

我想限制我的文件浏览器只显示我指定的文件类型,例如仅限.txt文件.我找到的代码的唯一相关片段如下:

fileInput("in_file", 
          "Input file:",
          accept=c("txt/csv", "text/comma-separated-values,text/plain", ".csv") 
Run Code Online (Sandbox Code Playgroud)

但是,这不会将浏览器中显示的文件过滤为.txt和.csv.有任何想法吗?

rstudio shiny

3
推荐指数
1
解决办法
1606
查看次数

标签 统计

rstudio ×2

presentation ×1

r ×1

rpres ×1

shiny ×1