Repository with Rmd (R Markdown) marked with HTML only #149615
-
R Mardown shows HTML in RepoQuestion BodyI have a project where I coded in R Markdown. The Repo with this file is tagged with HTML, and shows to be the only language used. For Python Notebooks it shows Jupyter Notebook, but for R Markdown its showing HTML. How do I fix it to show R as the language (since that's what I used)? Any ideas would be helpful. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Try to create a
This will tell GitHub Linguist to treat all |
Beta Was this translation helpful? Give feedback.
Try to create a
.gitattributes
file in the root of your repository and add the following line:*.Rmd linguist-language=R
This will tell GitHub Linguist to treat all
.Rmd
files as R instead of HTML. After adding this file, commit and push the changes to your repository. GitHub should then update the language statistics to reflect R instead of HTML.