Normalize line endings to LF; add .gitattributes#165
Conversation
From AI -- Problem. The whole working tree currently shows as modified in git, but git diff --ignore-all-space shows zero real changes — it is pure CRLF↔LF line-ending noise. Without fixing this first, every later PR diff is buried under thousands of phantom line-ending changes and nothing reviews cleanly. Change. Add a .gitattributes that forces LF for text files (* text=auto eol=lf plus explicit entries for .R, .Rmd, .Rd, .md, .yaml/.yml, DESCRIPTION, NAMESPACE, .Rproj) and marks binaries (.rda, .png, .ico, .svg) as binary. Set the RStudio project to write LF (LineEndingConversion: Posix in cmapplot.Rproj) so RStudio doesn't re-introduce CRLF on save. Run git add --renormalize . in the same commit. Files. .gitattributes (new), cmapplot.Rproj. Review note. The diff looks huge but is mechanical — "line endings only."
AI generated cmapplot modernization — status & roadmapA sequence of small, independent pull requests to modernize the package — especially to make it Positron-friendly and resilient to current ggplot2. Each PR is self-contained and safe to merge on its own. Convention: the package uses the magrittr Issue links refer to https://github.com/CMAP-REPOS/cmapplot/issues Progress at a glance
Stack, in order:
The numbering below is the recommended order: CI + ggplot2 fixes first (they guard everything and address active breakage), then docs, then palette work, then infra/quality, then the big ggrepel refactor last. Completed — detailsPR 1 — Normalize line endings +
|
From AI -- Problem. The whole working tree currently shows as modified in git, but git diff --ignore-all-space shows zero real changes — it is pure CRLF↔LF line-ending noise. Without fixing this first, every later PR diff is buried under thousands of phantom line-ending changes and nothing reviews cleanly.
Change.
Add a .gitattributes that forces LF for text files (* text=auto eol=lf plus explicit entries for .R, .Rmd, .Rd, .md, .yaml/.yml, DESCRIPTION, NAMESPACE, .Rproj) and marks binaries (.rda, .png, .ico, .svg) as binary.
Set the RStudio project to write LF (LineEndingConversion: Posix in cmapplot.Rproj) so RStudio doesn't re-introduce CRLF on save. Run git add --renormalize . in the same commit.
Files. .gitattributes (new), cmapplot.Rproj.
Review note. The diff looks huge but is mechanical — "line endings only."