If anyone else is like me and constantly forgets to check if they need to pull from github when switching between computers (until you create a merge conflict and it's too late), pop this in the #rstats project's .Rprofile: cat(crayon::cyan(system("git status -u no", T)))
2
7
62
Replying to @LisaDeBruine
Yep. It tends to become muscle memory, or you learn when you try to commit and the repo is behind :) BTW the higher-end variant is to edit the PS1 variable for your shell to show `git status`. There are a number of tutorials out there that should help given your shell.

Feb 27, 2022 · 10:26 PM UTC

1
1
Replying to @eddelbuettel
Oddly, I never have this problem when I'm working in the shell, just when I'm in an rstudio project. The git pane has a tiny status message, but I'm often not on that pane when I start up or don't see it, so I need a warning in the rstudio console where I'll notice it.
1