I have a recurring issue with in my notebooks which I think is related to caching. It happens with some regularity that code blocks which ran fine previously start to throw errors, of the sort:
Quitting from lines 51-52 [unnamed-chunk-9] (02-geographic-data-in-r-messin.Rmd)
or
Warning in gzfile(file, "wb") : cannot open compressed file '/home/biscotty/Learning/R/GeoSpatial/geocompx/.Rproj.user/shared/notebooks/911595BD-02-geographic-data-in-r-messin/1/A00762A5B5B75CD0/cv5dy0gdf24s9_t/ef59ef0a3b2543d78d4265797550942d.snapshot', probable reason 'No such file or directory' Error in gzfile(file, "wb") : cannot open the connection
If I open a new code block below the command which produced the second error and repeat the exact command it runs normally. The problem seems to be related to graphics/plotting and occurs if I make a change to a code block having run it once. There seems to be some caching going on, which I'd like to turn off, since I end up doing a lot of copy/paste to make minor modifications to a code block.
Thanks in advance
FWIW If I remove the front matter it seems to go away, and I can knit manually, so I think it is a knitr error at some level.
EDITS:
On further testing, this seems to happen with any alteration to a chunk of code already run.
On yet further testing, this seems to only happen when editing in Visual mode. I started using Source mode and haven't had any issues (so far).