I am making an interactive R Markdown report, with Shiny providing the interactivity. I am having a problem where I cannot access variables in the global environment when I click "Run Document" in RStudio (as described here). That same sections describes how you can use rmarkdown::run(...)
to run the document from the command line, and this question shows that this allows the report to access variables in the global environment.
However, for my version of R I get the following error in the pop up window:
Error: pandoc version 1.12.3 or higher is required and was not found.
When I try and install pandoc
, I get:
> install.packages("pandoc")
Warning in install.packages :
package ‘pandoc’ is not available (for R version 3.2.2)
Is there a fix for this?