powered by
Reports which packages need to be installed and the parent function name. See https://stackoverflow.com/questions/15595478/how-to-get-the-name-of-the-calling-function-inside-the-called-routine This is only intended to be used inside a function. It will error otherwise.
abort_packages_not_installed(...)
names of packages to check
Kelly Sovacool sovacool@umich.edu
if (FALSE) { abort_packages_not_installed("base") abort_packages_not_installed("not-a-package-name", "caret", "dplyr", "non_package") }
Run the code above in your browser using DataLab