Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document your own solution using linguist-detectable to show R Markdown in Linguist GitHub repo language statistics #93

Open
remlapmot opened this issue Sep 6, 2021 · 0 comments

Comments

@remlapmot
Copy link

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: prose here 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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant