## Not run:
# pkgs <- list("ggplot2", "lme4")
# loadPackages(pkgs) # loads packages if installed
# loadPackages(pkgs, install = TRUE) # loads packages after installation (if needed)
# ## End(Not run)
Run the code above in your browser using DataLab