How to force rstudio / knitr / rmarkdown to use the pandoc alternate binary (scholdoc)

scholdoc(see scholarlymarkdown.com ) is a fork pandocthat has! FINALLY! easy binding of figures / code blocks, etc., built-in - the central missing element c pandoc.

Is there any direct way to force use scholdocinstead of sent binary pandocwhen using knitr/ rmarkdownin rstudio?

When I installed in .Rprofile

options(
  rstudio.markdownToHTML = function(inputFile, outputFile) {
    system(
      paste(
        "~/.cabal/bin/scholdoc",
        shQuote(inputFile),
        "-o", shQuote(outputFile)))
  })

as stated here , this seems to work, but since it lacks all of the command line options used internally pandoc, it is out HTMLof the box and will lead me to the painful way of getting all the CLI interface options.

rmarkdown, RSTUDIO_PANDOC, scholdoc - .

- rstudio/scholdoc?

+4
1

, , bookdown .. rmarkdown.

install.packages('bookdown'), RStudio , YAML :

output:
  bookdown::pdf_document2:
0

Source: https://habr.com/ru/post/1598101/


All Articles