Skip to content

Document worker run_r as a general opt-in - #214

Merged
TroyHernandez merged 1 commit into
mainfrom
docs-worker-run-r
Sep 16, 2026
Merged

TroyHernandez merged 1 commit into
mainfrom
docs-worker-run-r

Conversation

@TroyHernandez

Copy link
Copy Markdown
Contributor

The run_r_mode = "worker" documentation in the configuration vignette was
framed for embedded and unattended hosts. This adds the general "when would I
choose this" guidance so any session can find it:

  • Why: a real wall-clock kill for hang-prone or untrusted R (where
    setTimeLimit() in the host process is unsafe), and crash isolation so a
    segfault or runaway allocation takes down a disposable child, not your session.
  • Cost: per-call serialization and a workspace separate from the host's
    .GlobalEnv, so it is an opt-in for safety, not the interactive default.

Also documents that the worker now starts with R's default packages
(utils/stats/methods/...) as of 0.7.1.54, overridable via
run_r_worker_options$env.

Docs only, no code change, no version bump.

🤖 Generated with Claude Code

The run_r_mode = "worker" docs were framed for embedded/unattended hosts.
Add the 'when would I choose this' guidance for any session (real
wall-clock kill for hang-prone or untrusted R, crash isolation, at the cost
of serialization and a separate workspace) and note the worker now starts
with R's default packages (0.7.1.54), overridable via
run_r_worker_options$env. Docs only.
@TroyHernandez
TroyHernandez merged commit 2c8ce04 into main Sep 16, 2026
2 checks passed
@TroyHernandez
TroyHernandez deleted the docs-worker-run-r branch September 16, 2026 21:38
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