REditorSupport / REditorSupport/vscode-R

Change default file extension from .r to .R

Open
#1,490 0 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
1.2k
Forks
139
Avg merge
2h 46m
Merged PRs (30d)
5

Description

Hello,

Can you please consider changing the default file extension from .r to .R. While in most cases the difference is not important, the most common is the latter and there are some software that expect it - which can be problematic when it's not there.

For example, the starship shell prompt R module: https://starship.rs/config/#r . This expects to find a range of R related files (.R, .Rd, .Rproj etc) but won't work with .r . As there are no uses cases I know of that will work with .r but not .R, it makes sense to use .R as the default.

Thanks.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the extension for where the default .r file extension is defined and trace the entry point that creates or names these files. Change the default to .R, then verify that the affected file-creation behavior and any existing tests use the new extension.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, typescript, vscode
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.