...
“Whenever I have to think to understand what the code is doing, I ask myself if I can refactor the code to make that understanding more immediately apparent.”
― Martin Fowler, Refactoring: Improving the Design of Existing Code
Example of refactored code:
...
the R environment referred as .GlobalEnvis used by default in the console of R Studio or a R script.
The R environment ds.test_env is used by the testing framework.
...