You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if this is better here or in your Cookbook.
I think it would be worth adding a short section documenting your own solution here to making RMarkdown appear in the Linguist Languages statistics of a GitHub repository by add the following line to the .gitattributes file
*.Rmd linguist-detectable
or even safer catch the fully lower case .rmd file extension as well
*.[Rr]md linguist-detectable
It would be worth explaining that by default Linguist ignores R Markdown (RMarkdown in Linguist) from the Languages statistics because it's defined as type: prosehere and files of that type are excluded from the statistics without the linguist-detectable override as detailed here.
I assign the copyright of this contribution to the authors of the book "R Markdown: The Definitive Guide".
The text was updated successfully, but these errors were encountered:
I don't know if this is better here or in your Cookbook.
I think it would be worth adding a short section documenting your own solution here to making RMarkdown appear in the Linguist Languages statistics of a GitHub repository by add the following line to the
.gitattributes
fileor even safer catch the fully lower case
.rmd
file extension as wellIt would be worth explaining that by default Linguist ignores R Markdown (
RMarkdown
in Linguist) from the Languages statistics because it's defined astype: prose
here and files of that type are excluded from the statistics without thelinguist-detectable
override as detailed here.The text was updated successfully, but these errors were encountered: