0

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?

Community
  • 1
  • 1
Alex
  • 15,186
  • 15
  • 73
  • 127

1 Answers1

2

pandoc isn't a R package. It's something you need installed on your system. RStudio provides it if you don't have it installed. Updating RStudio should fix the issue if you don't want to install pandoc manually.

Dason
  • 60,663
  • 9
  • 131
  • 148