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
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"
]
---
Here is a possible workaround. After failing to resolve the error using the RStudio GUI button to 'Knit HTML', the following generated the expected HTML file.
library(knitr)
knit2html('./myNotes.Rmd')
Hope that helps.