How to increase stack space overflow for pandoc in R?

后端 未结 2 1141
执念已碎
执念已碎 2020-12-15 07:38

I am getting the following error with Knit HTML:

Stack space overflow: current size 16777216 bytes.
Use `+RTS -Ksize -RTS\' to increase it.
Error: pandoc doc         


        
2条回答
  •  无人及你
    2020-12-15 08:06

    Solution: Add the following code snippet at the beginning of your Rmd file to increase the stack size:

    ---
    title: "Habits"
    output:
      html_document:
        pandoc_args: [
          "+RTS", "-K64m",
          "-RTS"
        ]
    ---
    

提交回复
热议问题