You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
should the create_*() do more re: .gitignore? #1952
I guess the implicit take here is that we think people should run git_vaccinate(), i.e. the implicit advice is to have a good gitignore file at the user aka global level. I'm not sure how effective or realistic this stance is 🤔
To be clear, a typical call to create_*() will call use_rstudio() to add an .Rproj file (currently happens in RStudio and in Positron), which does add .Rproj.user to the repo-level .gitignore. So that's often the only entry.
But arguably some of our recommendations are relevant to any R project, such as .Rhistory and .Rdata:
Activity
jennybc commentedon Jul 24, 2025
I guess the implicit take here is that we think people should run
git_vaccinate(), i.e. the implicit advice is to have a good gitignore file at the user aka global level. I'm not sure how effective or realistic this stance is 🤔To be clear, a typical call to
create_*()will calluse_rstudio()to add an.Rprojfile (currently happens in RStudio and in Positron), which does add.Rproj.userto the repo-level.gitignore. So that's often the only entry.But arguably some of our recommendations are relevant to any R project, such as
.Rhistoryand.Rdata:usethis/R/git.R
Lines 565 to 572 in 6036504