When I'm writing a new function in a tflow project I often realize I need to add a package to packages.R. I move my focus over to the packages.R script to add the package, and then move my focus back to the function.
Would it make sense to add a function to tflow that could add library(whatever) to packages.R so that it isn't necessary to move from script to script? e.g., tflow::add_package(whatever) or tflow::use_package(whatever) if you don't mind the namespace overlap with usethis::use_package
The
packages.R
script is a wonderful idea.When I'm writing a new function in a
tflow
project I often realize I need to add a package topackages.R
. I move my focus over to thepackages.R
script to add the package, and then move my focus back to the function.Would it make sense to add a function to
tflow
that could addlibrary(whatever)
topackages.R
so that it isn't necessary to move from script to script? e.g.,tflow::add_package(whatever)
ortflow::use_package(whatever)
if you don't mind the namespace overlap withusethis::use_package