Skip to content

feat(launch_proj_docker): mount_mode arg for delegated/cached volumes (#9)#11

Open
VincentGuyader wants to merge 3 commits into
masterfrom
feat/mount-mode-9
Open

feat(launch_proj_docker): mount_mode arg for delegated/cached volumes (#9)#11
VincentGuyader wants to merge 3 commits into
masterfrom
feat/mount-mode-9

Conversation

@VincentGuyader
Copy link
Copy Markdown
Member

Summary

  • New mount_mode argument on launch_proj_docker() accepts "delegated", "cached", "consistent", or NULL (default, no suffix). The mode is appended to every -v flag in the generated docker run command.
  • All -v rendering goes through a single exported helper, build_volume_arg(local, container, mode), so the project bind mount, the renv cache, the RStudio config dirs and any user-supplied additional volumes share the same code path. Side benefit: harmonised quoting on every -v.

Note on CI

The existing R-CMD-check.yaml pins ubuntu-18.04 (retired) and error_on = 'warning', so it cannot run as-is. Modernising the workflow file requires workflow scope on the PAT and is out of reach here — please refresh with gh auth refresh -s workflow and I can push the cleanup, or apply it directly. (Standalone branch ready: ubuntu-latest + r-lib/actions v2.)

Test plan

  • tests/testthat/test-build_volume_arg.R: 7 PASS, including unknown-mode rejection and NULL/NA round-trip.
  • Local R CMD check: 0 ERROR / 2 WARNINGs / 2 NOTEs (all pre-existing — vignettes need to be built first, Rd lost-braces, optional usethis Suggest).

Closes #9

…#9)

New helper build_volume_arg() renders docker -v arguments with an optional
consistency-mode suffix (delegated/cached/consistent). launch_proj_docker()
now threads its mount_mode argument through every -v flag so macOS users
can choose delegated for lower-latency bind mounts.
The previous workflow pinned ubuntu-18.04 (retired by GitHub runners)
and ran rcmdcheck with error_on = 'warning', which made the job both
unable to start and prone to fail on benign vignette WARNINGs. Replace
with the standard r-lib/actions v2 template on ubuntu-latest, error-on
error only.
- actions/checkout v2 -> v4
- r-lib/actions/setup-r v1 -> v2
- r-lib/actions/setup-pandoc v1 -> v2
- actions/cache v2 -> v4
@VincentGuyader VincentGuyader self-assigned this Apr 26, 2026
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.

Mount volume with :delegated or :cached param

1 participant