Skip to content

Add session option to disable DESCRIPTION annotation by install.packages() hook #17514

Description

@kevinushey

Description

After a successful install.packages(), RStudio's hook annotates the
installed package's DESCRIPTION file with RemoteType / RemoteRepos
fields so the Packages pane can display the source repository. This
involves an available.packages() fetch, a dependency-closure
computation, a filesystem scan of the affected library paths, and a
write into each installed package's DESCRIPTION.

Some deployments would prefer that RStudio not mutate DESCRIPTION
files in installed package directories, or simply do not need the
Packages pane's detailed Source column.

Proposal

Add an admin-controlled session option,
allow-package-source-recording (default true), that suppresses the
post-install DESCRIPTION annotation when set to false. With the
option disabled, the install hook skips the available.packages()
fetch, dep-closure computation, sentinel write, post-install scan, and
recordPackageSource step entirely.

Activity

  1. added
    new
    on May 1, 2026
  2. added this to the Golden Wattle milestone on May 1, 2026
  3. self-assigned this
    on May 1, 2026
  4. added theissue type on May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementnew

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions