§2024-12-03

In R, both .r and .R can be used as file extensions for R script files, but .R is the more commonly used convention. Here's a breakdown:

In short, unless you have a specific reason to use .r, it’s generally better to use .R.