pandoc version 1.12.3 or higher is required and was not found (R shiny)

后端 未结 10 2668
轮回少年
轮回少年 2020-11-29 02:09

I have a problem generating a pdf report from my app shiny which is hosted on a server.

the app works fine but when I press the button to download the report, I get

10条回答
  •  独厮守ぢ
    2020-11-29 02:58

    Another option so that this works for all your R scripts is to define this variable globally.

    On Debian/Ubuntu, add the following line to your .bashrc file:

    export RSTUDIO_PANDOC=/usr/lib/rstudio/bin/pandoc
    

    On macOS, add the following to your .bash_profile file:

    export RSTUDIO_PANDOC=/Applications/RStudio.app/Contents/MacOS/pandoc
    

    On Windows (using Git Bash), add the following to your .bashrc file:

    export RSTUDIO_PANDOC="/c/Program Files/RStudio/bin/pandoc/"
    

提交回复
热议问题