Skip to content

add option to treat projects as untrusted by default; disable visual editor in untrusted projects #17912

Closed

Description

@kevinushey

RStudio's project trust feature currently prompts for trust only when a project contains risky startup files (.Rprofile, .RData, .Renviron). For environments that want a stricter posture, there should be a way to require an explicit trust grant for every project.

This adds:

  • A new project-trust-required session option (off by default). When enabled, projects are treated as untrusted by default: the trust prompt is shown for any project that has not been explicitly trusted, even if it contains no auto-executing files. Setting this option implies project-trust-dialogs, unless that option has been explicitly disabled.

  • In untrusted projects (including projects whose trust decision is still pending), the visual editor is disabled; only the source editor is available for markdown documents (e.g. .Rmd, .qmd). Attempting to switch to visual mode shows a warning bar explaining why.

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions