First off, I tried to provide a reprex, but I'm not sure how to do replicate the issue in this case.
I have some code, which first reads a large-ish csv (4 GB), using
a <- read.csv
then manipulates it.
When I try to knit the markdown document, it loads on this page for several minutes:
processing file: Test-R_Markdown.Rmd
|.. | 3%
ordinary text without R code |.... | 6%
label: unnamed-chunk-1 |...... | 9%
ordinary text without R code | 11%
label: unnamed-chunk-2 |......... | 14%
ordinary text without R code |........... | 17%
Then provides this error:
I'm new to R markdown, so I feel there may be something obvious I am missing, but I cannot think of it.
ensuring all my packages are up to date
ensuring R is using all of my RAM (though it says the problem is a vector of 500 Mb, which seems small)
I also knit a markdown of the mtcars data frame, and it knit just fine.
Restarting RStudio with a clean environment