Rapporter / pander

An R Pandoc Writer: Convert arbitrary R objects into markdown
http://rapporter.github.io/pander/
Open Software License 3.0
294 stars 66 forks source link

pandoc convert : path to pandoc not escaped on windows #331

Closed cturbelin closed 5 years ago

cturbelin commented 5 years ago

Platform: Windows pander: Version 0.6.1 function : Pandoc.convert The path provided by "pandoc.binary" option is not escaped during the system call, and this causes problem when the path contains space (yes...I know). The pandoc.binary cannot be escaped before because of the test of existence of the binary.

If we use panderOptions("pandoc.binary", file.path(Sys.getenv("RSTUDIO_PANDOC"), "pandoc.exe")) the conversion crash on some Windows installation