I have a few libraries that I use in the script namely
tidyverse
readxl
How can I make it so that if someone run's my script it will either download them if they don't have it already or somehow package the libraries together in a zip?
Does packrat do this?
This is all I have but its inelegant for novice R users:
# uncomment these lines before you start to install the packages then
# install.packages("dplyr")
# install.packages("readxl")
library(dplyr)
library(readxl)