小编Art*_*aCo的帖子

浏览器刷新后,交互式rmarkdown文档无法正确显示

我正在运行以下交互式rmarkdown文档:

### Example of shiny app

```{r, echo = FALSE, eval = TRUE}
  numericInput("rows", "How many cars?", 5)

renderTable({
    head(cars, input$rows)
})
```

### Another example

```{r, echo = FALSE}
  sliderInput("bins", "Number of bins:", min = 1, max = 50, value = 30)

  renderPlot({
    x <- faithful[, 2]  # Old Faithful Geyser data
    bins <- seq(min(x), max(x), length.out = input$bins + 1)

    # draw the histogram with the specified number of bins
    hist(x, breaks = bins, col = 'darkgray', border …
Run Code Online (Sandbox Code Playgroud)

r r-markdown shiny

7
推荐指数
1
解决办法
1386
查看次数

标签 统计

r ×1

r-markdown ×1

shiny ×1