Public-Health-Scotland / phsmethods

An R package to standardise methods used in Public Health Scotland (https://public-health-scotland.github.io/phsmethods/)
https://public-health-scotland.github.io/phsmethods/
54 stars 13 forks source link

Add Linguist Override #14

Closed davidc92 closed 4 years ago

davidc92 commented 4 years ago

This is to try and fix the problem with tests/testthat/test-qtr.R having the incorrect colours. GitHub is mislabelling the file as a Rebol file rather than an R file so it's colouring it as it would a Rebol file. Apparently this is a common issue that used to happen a lot because Rebol used to use the file extension .r. I think there is a better way to fix it, but for now a workaround is creating an attributes file to force the language classifier (linguist) to class .r/R files as R rather than Rebol.

For the record, I'm not actually sure this will work. I forked the repo and merged it on my fork to see and it looks like it is flicking back and forth, so this may have been a pointless exercise. It's also not that important, but it has been annoying me so I would like to fix it.