"long vectors not supported yet" error in Rmd but not in R Script
Solution 1:
I also ran into this today, and fixed it by using cache.lazy = FALSE
in the setup chunk in my .Rmd.
So what is inside of the first chunk in my R Markdown file looks like this:
library(knitr)
knitr::opts_chunk$set(cache = TRUE, warning = FALSE,
message = FALSE, cache.lazy = FALSE)
Solution 2:
I am getting the same error in my .rmd file while trying to knit it to pdf. The incriminated code chunk was cached.
Is there a way to bypass that error?
Removing the 'cache = TRUE' or setting it to FALSE seems to fix the issue.