Accessing A variable from current Session in RMarkdown Code chunk.
--------------------------------------------------------------------------------------------When you run RStudio and click on Knitr Html to knit an R Markdown file it starts a new R session and you can not see the variables from other current running R Session.
If you want to use Variables from the current session use
rmarkdown:render("x.rmd") and it will run the markdown in the current session itself.
But if the RMarkdown page contains shiny components as well rmarkdown:render given an error,
"path for html_dependency not provided".
To overcome that you have to use rmarkdown:run() function instead.
Comments
Post a Comment