During recent PRs, GitGub Actions flagged that we use assignments to the global environment. This is not considered best practice in R; functions should generally return values explicitly instead of modifying the global environment.
A refactor of this approach should be developed and implemented to remove these global assignments where possible. Known functions are init_dr() in dr.main.functions.R and init_kpi() in kpi.main.functions.R. A search across the package should be conducted to ensure there are no others.
See example failure report here : https://github.com/CDCgov/sirfunctions/actions/runs/24412292486/job/71317419237
During recent PRs, GitGub Actions flagged that we use assignments to the global environment. This is not considered best practice in R; functions should generally return values explicitly instead of modifying the global environment.
A refactor of this approach should be developed and implemented to remove these global assignments where possible. Known functions are
init_dr()in dr.main.functions.R andinit_kpi()in kpi.main.functions.R. A search across the package should be conducted to ensure there are no others.See example failure report here : https://github.com/CDCgov/sirfunctions/actions/runs/24412292486/job/71317419237