usePackage.Rd
The usePackage function takes a single command, the name of a package, and will install it, if not already installed, and then load it. Taken from https://github.com/sussyfuss/usefulScripts
usePackage(p, repos = "http://cran.us.r-project.org")
A package name as a string in quotes.
Defaults to US cran otherwise put a cran mirror in as character
usePackage("readr")
#> Loading Package readr...
#> Loading required package: readr