Error :: Pandoc is required to build R Markdown

Hi, I tried to do R CMD build ../mypackage and I receive this message

* creating vignettes ... ERROR
--- re-building ‘cartograflow_general.Rmd’ using rmarkdown
Error: processing vignette 'cartograflow_general.Rmd' failed with diagnostics:
Pandoc is required to build R Markdown vignettes but not available. Please make sure it is installed.
--- failed re-building ‘cartograflow_general.Rmd’

I tried to install in R console pandoc as below
install.paclages("pandoc")

I've always the message error, Have you an idea how I can fix it?

thanks in advance

pandoc is not an R package, but an external tool. You can download and install it from Releases · jgm/pandoc · GitHub

2 Likes

Thanks I will try it.
So question : why is it possible to install it directly in R?

The pandoc R package is a development tool that would be most helpful to package developers. The average user probably wouldn't need it - you can read more about the package here: Manage and Run Universal Converter Pandoc from R • pandoc.

As @Gabor suggests, you should download the external tool from the link he provided.

Right, you need the external tool for rmarkdown. The pandoc R package helps you install pandoc (the external tool), if you want to use it, call pandoc::pandoc_install().

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.