required_packages does not return a value, it only install and load the desired packages.
Examples
## Not run:#If you need to install and load the tidyr, dplyr and ggplot2 packages, run the following line:#required_packages(tidyr, dplyr, ggplot2)## End(Not run)