.r
5 claimants
3 primary
2 secondary
shared primary (3)
SWH popularity
From the SWH-MSR-ARV dataset (Desmazières, Di Cosmo, Lorentz, MSR 2025; file nb_extensions_alphanum.csv) — one row per (ext, year) in the full SWH archive. Case-aggregated. citation.
23.2M
total occurrences
5.9M
since 2019 (25.6%)
1970–2023
years active
Case variants in archive: .R (21.5M), .r (1.7M) — aggregated above.
Attribution status
This extension is attributed to R; REBOL; Rez as primary by 3 authoritative claims.
Claimants (9)
Languages that list
.r among their extensions. Strength reflects whether the upstream source treated it as their primary extension.| Language | Source | Strength |
|---|---|---|
| R | linguist | primary |
| REBOL | pygments | primary |
| Rez | linguist | primary |
| R | pygments | secondary |
| R (programming language) | pygments | secondary |
| REBOL | linguist | secondary |
| s | pygments | secondary |
| R | wikipedia | proposed |
| REBOL | wikidata | deprecated |
Wikidata says… (5)
File formats, image formats, audio codecs and other non-PL
entities that claim
.r on Wikidata
(property P1195) or in the Wikipedia infobox.
Source: data/derived/external_extension_index.csv.
Click Use as new PL on any row to open the
Add-PL form pre-filled with that entry's name, Wikipedia/Wikidata
URL, and this extension — one submission creates the PL + claim.
| Format | Class (Wikidata P31) | Suggested label | MIME | Notes | Action |
|---|---|---|---|---|---|
| Img Software Set Red Component Q28206328 file format | file format | — | — | — | Use as new PL ↗ |
| R program file Q111520019 file format | file format | — | — | — | Use as new PL ↗ |
| REBOL file format Q130603160 file format | file format | — | text/x-rebol | — | Use as new PL ↗ |
Disambiguation rules (3)
Linguist heuristics that decide, by content, which language a
.r file actually is.| Rule | Predicts | Kind | Predicates (truncated) |
|---|---|---|---|
h/linguist/.r/0 | REBOL | predicates | [{"kind": "any", "regexes": ["(?i:\\bRebol\\b)"]}] |
h/linguist/.r/1 | Rez | predicates | [{"kind": "any", "regexes": ["(#include\\s+[\"<](Types\\.r|Carbon\\/Carbon\\.r)[\">])|((resource|data|type)\\s+'[A-Za-z0-9]{4}'\\s+((\\(.*\\)\\s+){0,1}){)"]}] |
h/linguist/.r/2 | R | predicates | [{"kind": "any", "regexes": ["<-|^\\s*#"]}] |
SWH-mined examples (0)
No archived examples for .r in our local mirror yet.