I received the following error when knitting a document:
Quitting from lines 583-704 (education_crime_final.Rmd)
Error in lapply(X = X, FUN = FUN, ...) :
seek failed on /Users/neatlabs/Desktop/EdSpending_Crime/education_crime_final_cache/docx/model building_7427809df73101b7d200e89c1a229cdc.rdb
Calls: <Anonymous> ... withVisible -> eval -> eval -> mean -> sapply -> lapply
Execution halted
I think this is a size issue but only because I came across a google result that talked about the issue with microsoft. I trouble shot the issue down to: if I continued asking for the same object `r mean(sapply(ed_crime.model.2.imp$analys, AIC)) - mean(sapply(ed_crime.model.1.imp$analys, AIC))`, down to `r mean(sapply(ed_crime.model.2.imp$analys, AIC))`
, the knitr continued fine; however, when I started asking for new models `r mean(sapply(ed_crime.model.5.imp$analys, AIC)) - mean(sapply(ed_crime.model.4.imp$analys, AIC))`, down to `r mean(sapply(ed_crime.model.5.imp$analys, AIC))`
I would get the above error.
Does anyone know how this can be fixed? I get that people want a reproducible example, but I'd have to give you a very large file and a lot of code in order to reproduce it. Hoping that someone here has come across this before.