From 1559f2ee6b86d1ccdc940567e0ea1756664b28c2 Mon Sep 17 00:00:00 2001 From: LeixB Date: Mon, 29 Nov 2021 17:26:20 +0100 Subject: [PATCH] Add `.RDataTmp` to R.gitignore When saving `.RData`, all data is initially saved in `.RDataTmp` which is then renamed to `.RData`. `.RDataTmp` should be added to `.gitignore` since it will only exist while a save operation is in progress or something failed on save. Relevant links: - https://stackoverflow.com/questions/32098036/purpose-of-rdatatmp-temporary-file-r - https://github.com/wch/r-source/blob/trunk/src/library/base/R/load.R#L145-L154 --- R.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/R.gitignore b/R.gitignore index da10c745..a7567e74 100644 --- a/R.gitignore +++ b/R.gitignore @@ -4,6 +4,7 @@ # Session Data files .RData +.RDataTmp # User-specific files .Ruserdata