{"action":"closed","issue":{"url":"https://api.github.com/repos/github/linguist/issues/2531","labels_url":"https://api.github.com/repos/github/linguist/issues/2531/labels{/name}","comments_url":"https://api.github.com/repos/github/linguist/issues/2531/comments","events_url":"https://api.github.com/repos/github/linguist/issues/2531/events","html_url":"https://github.com/github/linguist/issues/2531","id":98762175,"number":2531,"title":"R / Rebol Disambiguation","user":{"login":"jimhester","id":205275,"avatar_url":"https://avatars.githubusercontent.com/u/205275?v=3","gravatar_id":"","url":"https://api.github.com/users/jimhester","html_url":"https://github.com/jimhester","followers_url":"https://api.github.com/users/jimhester/followers","following_url":"https://api.github.com/users/jimhester/following{/other_user}","gists_url":"https://api.github.com/users/jimhester/gists{/gist_id}","starred_url":"https://api.github.com/users/jimhester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimhester/subscriptions","organizations_url":"https://api.github.com/users/jimhester/orgs","repos_url":"https://api.github.com/users/jimhester/repos","events_url":"https://api.github.com/users/jimhester/events{/privacy}","received_events_url":"https://api.github.com/users/jimhester/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-03T14:54:03Z","updated_at":"2015-08-04T11:45:44Z","closed_at":"2015-08-04T11:45:44Z","body":"Rebol repositories currently miss-classified as R repositories.\r\n\r\n- https://github.com/Oldes/REBOL-scripts\r\n- https://github.com/angerangel/rebolide/tree/master/local\r\n- https://github.com/angerangel/rebolforum\r\n- https://github.com/bitbegin/RebolSCard\r\n- https://github.com/jankom/RebToStatic/blob/master/primo.r\r\n- Search with more https://github.com/search?q=language%3Ar+rebol&type=Repositories&utf8=%E2%9C%93\r\n\r\nR repositories miss-classified as Rebol repositories.\r\n- https://github.com/hadley/memoise\r\n- https://github.com/hadley/classifly\r\n- https://github.com/opower/rbundler\r\n- https://github.com/asheshwor/np-quake\r\n- https://github.com/BrunildaBalliu/TrioEpi\r\n- Search with more https://github.com/search?utf8=%E2%9C%93&q=language%3Arebol+user%3Acran&type=Repositories&ref=searchresults\r\n\r\nIn particular one very user visible place where this comes up is when creating a gist, files with `.R` extensions are labeled as `Will render as Rebol.`.  The actual highlighting done with the gist seems correct however, so perhaps the highlighting is being done differently than the language display.\r\n\r\nThe heuristics from (https://github.com/draegtun/linguist/commit/bb2afbb03dbce9b39989edd876cdb41fe482690b) or ([pchaigno/linguist/lib/linguist/heuristics.rb#L81-L84](https://github.com/pchaigno/linguist/blob/282c15d78daf3f85b842601fcc077ddf5cdee494/lib/linguist/heuristics.rb#L81-L84)) seem like they would work well as Rebol files seem to require a `REBOL []` line to begin them, so this should disambiguate basically everything.  However those changes do not currently exist in the current master (https://github.com/github/linguist/blob/master/lib/linguist/heuristics.rb).  Another heuristic that could be used is the vast majority of R files use an uppercase `.R` for the extension.  Rebol files almost always use a lower case `.r`.\r\n\r\nI can make a pull request with the proposed heuristic if you would like."}}