installMissingRPackages R function to install missing R packages This function will search through the folder requested and install all packages used by R scripts within that folder that are not already installed.