.r
5 claimants
3 primary
2 secondary
shared primary (3)
SWH popularity
Distinct files in the full Software Heritage archive (2026-06-04 export), dated by first appearance, following Desmazières, Di Cosmo, Lorentz (MSR 2025). Case-aggregated. citation.
30.1M
total files
11.9M
first seen 2021–2025 (39.6%)
2020
median year (half its files since)
Case variants in archive: .R (28.0M), .r (2.1M) — 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) | Measured on SWH |
|---|---|---|---|---|
h/linguist/.r/0 | REBOL | predicates | [{"kind": "any", "regexes": ["(?i:\\bRebol\\b)"]}] | |
h/linguist/.r/1 | Rez | predicates | [{"kind": "any", "regexes": ["(?:\\A|[\\r\\n])[ \\t]*(?:resource|data|type)[ \\t]+'[^'\\r\\n]{4}'[ \\t\\r\\n]*(?:\\([^\\r\\n]*\\)[ \\t\\r\\n]*)?\\{", "(?:\\A|[\\r\\n])[ \\t]*#[ \\t]*include[ \\t]+[\"< | |
h/linguist/.r/2 | R | predicates | [{"kind": "any", "regexes": ["<-|^\\s*#"]}] |
SWH-mined examples (0)
No archived examples for .r in our local mirror yet.