Skip to content

Add capitalized .R extension to R - #289658

Merged
Martin Aeschlimann (aeschli) merged 2 commits into
mainfrom
aeschli/ruling-mongoose-903
Jan 22, 2026
Merged

Add capitalized .R extension to R#289658
Martin Aeschlimann (aeschli) merged 2 commits into
mainfrom
aeschli/ruling-mongoose-903

Conversation

@aeschli

Copy link
Copy Markdown
Contributor

fixes #284740

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request aims to change the default R file extension from lowercase .r to uppercase .R to align with R source code conventions, R IDEs (RStudio, Positron), and the Tidyverse Style Guide.

Changes:

  • Updates the R language extension configuration to use capitalized file extensions (.R, .Rhistory, .Rprofile)

Comment thread extensions/r/package.json
Comment on lines +20 to +22
".R",
".Rhistory",
".Rprofile",

Copilot AI Jan 22, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change completely removes support for lowercase file extensions (.r, .rhistory, .rprofile). While .R should be the default/preferred extension (first in the list), the lowercase variants should still be supported for backward compatibility. Many existing R files use lowercase extensions and would lose language support with this change. The extensions array should include both uppercase and lowercase versions, with .R listed first to make it the default.

Suggested change
".R",
".Rhistory",
".Rprofile",
".R",
".r",
".Rhistory",
".rhistory",
".Rprofile",
".rprofile",

Copilot uses AI. Check for mistakes.
@vs-code-engineering vs-code-engineering Bot added this to the January 2026 milestone Jan 22, 2026
@aeschli
Martin Aeschlimann (aeschli) merged commit 41aebd8 into main Jan 22, 2026
22 checks passed
@aeschli
Martin Aeschlimann (aeschli) deleted the aeschli/ruling-mongoose-903 branch January 22, 2026 21:09
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Mar 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use .R (not .r) as default R file extension

3 participants