.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.

Authoritative sources: ✓ Linguist ✓ Pygments △ Wikidata · secondary △ Wikipedia · secondary

Disagree or have a correction? Open a labelling issue.

Claimants (9)

Languages that list .r among their extensions. Strength reflects whether the upstream source treated it as their primary extension.
LanguageSourceStrength
Rlinguistprimary
REBOLpygmentsprimary
Rezlinguistprimary
Rpygmentssecondary
R (programming language)pygmentssecondary
REBOLlinguistsecondary
spygmentssecondary
Rwikipediaproposed
REBOLwikidatadeprecated

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.
Right entry isn't listed? Add manually ↗
FormatClass (Wikidata P31)Suggested labelMIMENotesAction
Img Software Set Red Component Q28206328
file format
file formatUse as new PL ↗
R program file Q111520019
file format
file formatUse as new PL ↗
REBOL file format Q130603160
file format
file formattext/x-rebolUse as new PL ↗

Disambiguation rules (3)

Linguist heuristics that decide, by content, which language a .r file actually is.
RulePredictsKindPredicates (truncated)
h/linguist/.r/0REBOLpredicates[{"kind": "any", "regexes": ["(?i:\\bRebol\\b)"]}]
h/linguist/.r/1Rezpredicates[{"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/2Rpredicates[{"kind": "any", "regexes": ["<-|^\\s*#"]}]

SWH-mined examples (0)

No archived examples for .r in our local mirror yet.

Need an archived example for this extension?
No verbatim file with extension .r in our local SWH mirror yet. Submit a sample-mining request and a maintainer will run swh_extension_mining.py against the live archive for this extension; samples land here once the run completes.
(or open the pre-filled issue directly)