Should line ending default to LF in RStudio project files? #1002
Some context and back story:
Right. Looking at it now, I don't think RStudio keeps the line ending characters. More precisely, maybe with some settings it does, but e.g. if the global option is set to 'Platform native' and the project does not set any option, like in the usethis template, then when editing a file, RStudio might change the line endings for the whole while.
This is not a problem if git is set up to auto-convert. But it is not set up that way, the commit will have changed line endings.
I think putting
in project file (template) would solve this, irrespectively of the global Rstudio setting, OS and git conversion config.
Minimal implementation for discussion - I'll add docs and tests if we agree that this approach makes sense. Fixes #1002
* Update base_rate and exchange_rate by renaming with get_ prefix * reduce diffs, export functions, rerender docs and pkgdown site * use .Deprecated per https://r-pkgs.org/release.html * use template to generate docs for deprecated functions satisfy R_CMD_CHECK * make R CMD CHECK happy :( * capitalization * fix capitalization again * Undo changes to Rproj from using different platforms * Standardize line endings r-lib/usethis#1002 Co-authored-by: Philip Khor <email@example.com>