use_gh_linguist | R Documentation |
This function creates a .gitattributes
file in the root of your project in
order to exclude certain file types from being detected as a certain programming language on GitHub. See details for more information.
use_gh_linguist(excludes = c("*.js", "*.html", "*.css"))
excludes |
Character vector of wildcards indicating extensions to be labelled as |
By default this function will write *.js
, *.html
, and *.css
to a .gitattributes
file in order for github-linguist
to ignore Javascript, HTML, and CSS languages in your repositories language section.
The resulting file will look like so:
# github linguist exclusions: *.js linguist-vendored *.html linguist-vendored *.css linguist-vendored
invisibly returns the text written to .gitattributes
## Not run: use_gh_linguist() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.