From 8d074f953d8801eb7ee4f3932d7523f22d18a77b Mon Sep 17 00:00:00 2001 From: Dirk Eddelbuettel Date: Sat, 18 Jul 2026 10:02:13 -0500 Subject: [PATCH] [R] Add compiled code files to .gitignore Adding a default `.gitignore` for new R projects is a nice features. Around 20% of CRAN packages contained compiled code, often C/C++ (and increasingly Rust etc). Those packages will when `git add everything` is used also commit their object code and shared libraries. With this PR they will no longer so it should offer a small quality-of-life improvement to these repositories. --- R.gitignore | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/R.gitignore b/R.gitignore index e75435c1b1..ed5fe75981 100644 --- a/R.gitignore +++ b/R.gitignore @@ -47,3 +47,8 @@ po/*~ # RStudio Connect folder rsconnect/ + +# compiled code +src/*.o +src/*.so +src/*.dll