ComputationalProteomicsUnit / maker

Makefile for R packages
GNU General Public License v3.0
31 stars 5 forks source link

Lintr recipe #20

Closed lbraglia closed 9 years ago

lbraglia commented 9 years ago

A recipe for the brand new lintr

https://github.com/jimhester/lintr

lgatto commented 9 years ago

Thanks. I have not used lintr yet. What are its benefits compared to checking a package and sourcing/running a function other than a direct static code analysis; does it uncover other bugs?

lbraglia commented 9 years ago

I've started using it yesterday... currently it seems mainly a style-checking (hadley's style by default, but can be configured) package with some bits of good practices enforcing. It uses codetools (checkUsage) for other analysis (it's not in the default linters). It's easy to add new linters (or to remove unused from the default ones)

Below from the devel README.md, about available linter up to now:

lgatto commented 9 years ago

Thanks. I will definitely give it a go.

sgibb commented 9 years ago

Thanks to @lbraglia I found jimhester's covr package. IMHO that is really interesting and useful!

lbraglia commented 9 years ago

definitely. Now i'm using

covr:
        ${R} -e "library(covr); package_coverage('"$(PKGDIR)"')"

it's fine but would be nice to have a way to display only tests below a given percent treshold (didn't digged too much at the moment)

lgatto commented 9 years ago

That's looks fantastic. Will try it, thanks!