added caching to help improve CI
added a cmd to install the relevant R libraries.