containerit icon indicating copy to clipboard operation
containerit copied to clipboard

Add lintr to testthat tests

Open nuest opened this issue 8 years ago • 2 comments

See https://github.com/jimhester/lintr#testthat

  • [ ] lint runs within a Travis Build

nuest avatar Jul 06 '16 08:07 nuest

Lint should run after successful build, but Travis fails at the moment :( .

I did not include it in testthat, because it throws many style-issues and causes R CMD Check to fail (it does not terminate).

lintr many need to be customized for messages like

'lines should not be more that 80 characters'

MatthiasHinz avatar Jan 26 '17 18:01 MatthiasHinz

We can add a file .lintr to configure what is checked, see https://github.com/jimhester/lintr#project-configuration

nuest avatar Jan 27 '17 07:01 nuest