Open m-kolomanski opened 1 day ago
Things to discuss regarding the details of implementation:
=
or <-
for variable assignment, using both is messy. Tidyverse guide suggests <-
, I personally dislike it and prefer =
. We can do whatever, as long as we are being consistant.
Issue
Closes #40
Description
The details are also up for discussion, but I believe it is necessary to define how the code should be written, so we can keep it clean, consistent and easily understandable. We can automate this process and make sure the code always adheres to the rules by utilizing lintr.
For setup in IDE, please follow this guide.
For
Rstudio
, in addition I personally recommend checking the Provide R style diagnostics in the Tools -> Global Options -> Code -> Diagnostics. This will display all linter issues within the editor.For
VSCode
, I personally recommend installing Error Lens extension for better highlighting.Definition of Done
lintr
implementedlintr
rules discussed and implemented in configuration