Skip to content

Add packages.r.packageManager setting to choose pak or base R#13755

Merged
bricestacey merged 3 commits into
mainfrom
13606/r-package-manager-setting
May 27, 2026
Merged

Add packages.r.packageManager setting to choose pak or base R#13755
bricestacey merged 3 commits into
mainfrom
13606/r-package-manager-setting

Conversation

@bricestacey
Copy link
Copy Markdown
Contributor

Adds an enum setting (auto/pak/base) that controls which R package manager the Packages pane uses for install, update, and remove. Default 'auto' preserves the existing prompt-then-fall-back-to-base behavior; 'pak' installs pak silently when missing; 'base' avoids pak entirely so users with constrained disk space can opt out of pak's caching.

Screenshot 2026-05-26 at 9 31 47 AM Screenshot 2026-05-26 at 9 31 52 AM Screenshot 2026-05-26 at 9 31 55 AM Screenshot 2026-05-26 at 9 31 57 AM

See #13606

Release Notes

New Features

  • Add setting for packages pane to configure preferred package installation strategy

Bug Fixes

  • N/A

Validation Steps

Open the settings. You can find it under Features / Packages.
Using each value, you can update the same package to its current version.
You can also try all the other actions.

Adds an enum setting (auto/pak/base) that controls which R package manager
the Packages pane uses for install, update, and remove. Default 'auto'
preserves the existing prompt-then-fall-back-to-base behavior; 'pak'
installs pak silently when missing; 'base' avoids pak entirely so users
with constrained disk space can opt out of pak's caching.

Consolidates _ensurePak/_getPakMethod into a single _resolveMethod that
honors the setting and applies uniformly to list, search, install,
update, and uninstall. renv projects are unaffected.

See #13606
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 26, 2026

E2E Tests 🚀
This PR will run tests tagged with: @:critical

readme  valid tags

@bricestacey bricestacey requested a review from jmcphers May 26, 2026 16:00
Renames the setting key, shortens the enum descriptions, reworks the
top-level description, and scopes the setting to RESOURCE so it can be
overridden per workspace.

See #13606
…er-setting

# Conflicts:
#	src/vs/workbench/contrib/positronPackages/browser/positronPackages.contribution.ts
@bricestacey bricestacey merged commit ebc7e7e into main May 27, 2026
26 checks passed
@bricestacey bricestacey deleted the 13606/r-package-manager-setting branch May 27, 2026 18:06
@github-actions github-actions Bot locked and limited conversation to collaborators May 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants