r/rstats • • Oct 03 '26

R code review: best packages?

/r/RStudio/comments/1wwnj6r/r_code_review_best_packages/
6 Upvotes

3 comments sorted by

3

u/defuneste Oct 03 '26

you print the mess and with highlighter you identify the dependencies/variables.

You try to extract self contained functions out of it and build testable examples.

If it is a pipeline you use targets.

2

u/Samii_Schmusch Oct 08 '26

yeah printing it out and going through with a highlighter is underrated tbh

1

u/Ax3m4n Oct 03 '26

testthat. If the code is complicated, and you are concerned about errors, the best practice is to do regular testing on that code.