Skip to content

Renv2 #87

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Renv2 #87

wants to merge 3 commits into from

Conversation

VincentGuyader
Copy link
Member

  • feat: In dock_from_renv, introduce build-arg RENV_PATHS_CACHE (default /root/.cache/R/renv) and propagate it as an ENV variable for configurable renv cache paths.
  • feat: In dock_from_renv, update cache mounting to --mount=type=cache,id=renv-cache,target=${RENV_PATHS_CACHE} and use renv::restore(clean=FALSE) to speed up and harden the Docker build.

Your Name added 3 commits June 22, 2025 00:27
…t /root/.cache/R/renv) and propagate it as an ENV variable for configurable renv cache paths.

feat: In dock_from_renv, update cache mounting to --mount=type=cache,id=renv-cache,target=${RENV_PATHS_CACHE} and use renv::restore(clean=FALSE) to speed up and harden the Docker build.
@VincentGuyader VincentGuyader requested a review from Copilot June 21, 2025 22:49
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces configurable renv cache paths by adding a build argument and environment variable and updates the cache mounting mechanism in the Docker build to speed it up and improve its robustness.

  • Adds ARG and ENV declarations for RENV_PATHS_CACHE in Dockerfiles.
  • Updates invocations of renv::restore to use clean = FALSE and dynamically set cache target.
  • Updates version and documentation to reflect the new behavior.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/testthat/renv_Dockerfile Adds ARG/ENV for RENV_PATHS_CACHE and updates cache mount with dynamic target.
tests/testthat/Dockerfile Removes an outdated Dockerfile in favor of the new configuration.
dockerfiler.Rproj Adds a unique ProjectId to the project file.
R/dock_from_renv.R Introduces ARG/ENV support and updates renv restore command for improved performance.
NEWS.md Documents the new features and updates.
DESCRIPTION Updates the version to reflect the new development release.

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

Successfully merging this pull request may close these issues.

1 participant