I have a chapter which was in a file named 03-methodology.Rmd, and every time I built the full pdf it would be deleted. Fortunately I had backups and could find and restore the file, but needless to say it's not ideal.
After some investigation I've realised that the cleaning scripts were inadvertently deleting it because it has 'log' in the filename (ie methodology), even though this isn't the file extension. I assume that it's some/all of the following lines from the Makefile:
I have a chapter which was in a file named
03-methodology.Rmd
, and every time I built the full pdf it would be deleted. Fortunately I had backups and could find and restore the file, but needless to say it's not ideal.After some investigation I've realised that the cleaning scripts were inadvertently deleting it because it has 'log' in the filename (ie methodology), even though this isn't the file extension. I assume that it's some/all of the following lines from the Makefile:
I've easily been able to get around this by renaming the file
03-methods.Rmd
, but thought it worth noting should it be a problem for anyone else.