Generating view of cache object in Markdown document in R

限于喜欢 提交于 2019-12-02 08:55:42

There are 2 ways to load the data "output_by_size" to your .RMD file:

  1. Don't knit your file with the Rstudio "knit" button, save your RMD file and then use the console:

    library(knitr) 
    knit('your_file.Rmd')
    

    This will take your recent environment into account and the error should be gone.

  2. Store your "output_by_size" as "output_by_size.RData" and load it manually in your RMD file

    ```{r load myData, include=FALSE}
    load("output_by_size.RData")
    ```
    

    If you do it this way you can use the "knit" button from RStudio.

I hope one of this ways is a good solution for you.

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