Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R and dependencies are not cached correctly #17

Open
aromanielloNTIA opened this issue Jan 17, 2025 · 3 comments
Open

R and dependencies are not cached correctly #17

aromanielloNTIA opened this issue Jan 17, 2025 · 3 comments

Comments

@aromanielloNTIA
Copy link

Hi, it looks like in workflow runs on this repo and my own which use this action, the installation of R and required dependencies are not properly cached. It appears the underlying setup-r action is supposed to automatically cache, but on each run, R and all dependencies are re-downloaded. This is a pretty huge overhead for what is otherwise a simple check. Is there any chance that this cache behavior could be improved?

@dieghernan
Copy link
Owner

Hi,

I am working on a new version that hopefully improves that. Stay tuned

@aromanielloNTIA
Copy link
Author

Hi @dieghernan, thanks for the reply! I have not noticed a speedup or meaningful caching since updating to v4. Perhaps an actions/cache step could be added within this action to cache the entire docker image if it hasn't changed? Such a change could probably be included in a v4.x without breaking anything else.

@dieghernan
Copy link
Owner

Agree , I was thinking also in that however I didn't find the way to use actions/cache with Docker https://github.com/actions/cache

Maybe I missed something or there's another action that can help with that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants