REditorSupport / sublime-ide-r

R-IDE: Make Sublime Text a perfect IDE for R
MIT License
112 stars 7 forks source link

R (3.5.1) Missing Pandocs Error #7

Closed tford9 closed 5 years ago

tford9 commented 5 years ago

My system has these specs:

Windows >= 8 x64 (build 9200) R version 3.5.1 (2018-07-02) -- "Feather Spray" Copyright (C) 2018 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit)

And I am getting this new error:

Error: pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).

The problem is that when I attempt to install pandocs, I get this message: image

It is likely that making a Sys.setenv(RSTUDIO_PANDOCS="PATH") before the rendering calls could fix the issue.

randy3k commented 5 years ago

pandoc is not an R package, you could download it from https://pandoc.org/. You may also make use of the pandoc shipped by RStudio by setting RSTUDIO_PANDOCS to where the binary is located.

tford9 commented 5 years ago

Adding the RSTUDIO_PANDOCS environmental variable in Windows fixed this problem for me.