Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rstudioapi::executeCommand("viewerClearAll") does not clear viewer pane #294

Open
1 task
HJAllen opened this issue Jan 25, 2024 · 0 comments
Open
1 task

Comments

@HJAllen
Copy link

HJAllen commented Jan 25, 2024

System details

RStudio Edition : Desktop
RStudio Version : 2023.12.0 Build 369
OS Version      : Windows 11
R Version       : 4.3.1

Steps to reproduce the problem

library(ggplot2)
library(plotly)
d <- data.frame(x = 1:10, y = 1:10)
ggplotly(
  ggplot(d) +
  geom_point(aes(x, y)))
rstudioapi::executeCommand("viewerClear")
rstudioapi::executeCommand("viewerClearAll")

Describe the problem in detail

The Posit Workbench Administration Guide lists commands which can be submitted through the rstudioapi including viewerClear and viewerClearAll. When submitting these commands in an attempt to clear the viewer, nothing happens. Other viewer commands like viewerPopout work as expected.

Describe the behavior you expected

Expected behavior is for the viewer pane to be cleared.

  • [X ] I have read the guide for submitting good bug reports.
  • [X ] I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting an RStudio crash, I have included a diagnostics report.
  • [X ] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
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

No branches or pull requests

1 participant