Function to check the package is installed, if not install
checkLoadPackages(pkg)
name of package(s)
0, if packages cant be installed and loaded, else -1
# NOT RUN { checkLoadPackages("dplyr") # }
Run the code above in your browser using DataLab