Closed slager closed 1 month ago
@slager could you add some comments, especially to the skeleton.Rmd files, on why this is the desired practice? you explain it in this PR, but it would be good to have a note in the template files so that everyone understands when they create a new report/project that this is the best practice.
@kelliemac There were multiple instances of it in the skeleton files, so I had the idea of just putting it in the centralized documentation so that it wouldn't need to be repeated. Let me know if you think that works!
looks great to me!
This is a bit nit-picky, but the other day when I had interrupted
devtools::test()
I noticed that these 3 objects had been written to my global environment in Rstudio, which is not what we want to be doing per best practices.This PR reins in the scoping of these 3 objects to the environment in which they actually get used.
See also:
?utils::data()
local
argument documentation in?source()