[PAQUETE] - 🧹 ¿Querés que tu código en R sea más limpio y profesional?

Te dejamos dos paquetes que no podés dejar de revisar:

🔍 {lintr} analiza tu código y detecta errores de sintaxis o estilo según la guía tidyverse.
🎨 {styler} lo reformatea automáticamente para que siga esas buenas prácticas.
• Info:
https://lintr.r-lib.org
https://styler.r-lib.org

#RStats #DataScience #CódigoLimpio #EstiloR #lintr #styler #rtips @rstats

A Linter for R Code

Checks adherence to a given style, syntax errors and possible semantic issues. Supports on the fly checking of R code edited with RStudio IDE, Emacs, Vim, Sublime Text, Atom and Visual Studio Code.

#rstats hivemind: has anyone written a linter to have #lintr check that I have a `return()` call at then end of each function (opposite of implicit return / tidystyle)?

A (maybe?) radical proposal: let’s ignore line length limits for comments and instead rely on our IDEs/editors to perform proper line breaking and indentation.

Manual line breaks in comments lead to awkward formatting and noisy commit diffs.

… Now, how do I adjust the corresponding #rstats #lintr rule? 🤔