{{ message }}
Tags: REditorSupport/vscode-R
Tags
PR1706 follow-ups (#1716) * fix(plot): avoid leaking plot_backend into the global environment profile.R is sourced as the user's R_PROFILE_USER, so the top-level plot_backend assignment created a stray variable in the user's global environment that persisted after startup (reported by @Fred-Wu). Wrap the sess::connect() setup in local() so the temporary plot_backend binding stays scoped, matching the pattern used by the .Rprofile block above it. * feat(plot): warn when a requested plot backend is unavailable When r.plot.backend explicitly selects jgd or httpgd (or the legacy r.plot.useHttpgd is true) but the package is not installed, register_hooks silently fell back to the standard viewer. The standard viewer has no plot-cycling UI, so users saw a degraded experience with no explanation (several reports on #1706). Emit a warning from register_hooks naming the requested backend and the remedy, but only when a specific backend was explicitly requested. The auto mode (use_jgd && use_httpgd) still degrades silently by design.
PreviousNext
