Git diff showing the ProjectID field added by RStudio 2024.12.0. Terminal: Ghostty. Theme: Dracula+. Font family: Iosevka Term. TL;DR: The fix The following script detects newly added ProjectID lines in .Rproj files using git diff. If detected, it removes the line and saves the modified .Rproj file.

Remove ProjectID from .Rproj files if freshly added local({ xfun <- requireNamespace("xfun", quietly = TRUE) rproj_files <- list.files(pattern = "\.Rproj$", full.names = TRUE) if …