Hey,
I am struggling to understand how exactly the github actions/cache works and how to leverage it for package caching after using r-lib/actions/setup-r@v1.
I only need to build on linux, and I am just struggling to figure out how (and when) to use the cache action correctly. The cache action gives me two options, path and key. Path will need to point to the user library that the packages are being installed into, let's assume I set that to ~/my-r-stuff previously. I cannot figure out what the 'key' should be and how it works.
At what point in my workflow do I need to invoke the cache action then to skip installing my packages again - before or after?
I was trying to work through:
Any guidance appreciated!