Note: this function is copied from the automagic R package. We are including it in
polished while we await the merging of this PR https://github.com/cole-brokamp/automagic/pull/17
and a new CRAN release of automagic.
get_dependent_packages(directory = getwd())folder to search for R and Rmd files
a vector of package names
parses all R and Rmd files in a directory and uses automagic::parse_packages
to find all R packages required for the code to run