How to link rmarkdown report with shinyapps to export webapp content in R?

寵の児 提交于 2019-12-05 10:51:14

I faced a similar situation and also tried downloadHandler but I couldn't make it work so what I did was:

  1. In the server codeblock, put your resulting plots, data.frames, etc. in the global Environment like this: plot1<<-ggplot().
  2. save these objects with save("df.1","plot1", file="path/to/file/MyData.RData").
  3. Load MyData.RData file in a template.Rmd file:

```{r, echo=FALSE, message=FALSE} load("path/to/file/myData.RData") ```

I think the rest is pretty easy to figure out.

Cheers!

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