Repository: rstudio/rstudio

Issue #15457: Impossible to import RData by double clicking when plot zoom window is open
Created: 2024-11-25T15:25:22Z
System details
RStudio Edition : Desktop
RStudio Version : 2024.04.2
OS Version      :  Windows 10
R Version       :  4..0

Steps to reproduce the problem
Open a plot zoom window after any plot, then try to import a previously saved dataset (in .Rdata file) by double-clicking on it does not open the Load confirmation prompt.
Example:
ggplot(mtcars,aes(mpg,cyl)) + geom_point()
Then open the plot zoom window and try to load any dataset
Describe the problem in detail
The load confirmation prompt that let you load any previously saved dataset is automatically launched when double clicking on any .Rdata file.
When a plot zoom window is open (by clicking on the Zoom magnifying glass in the Plots pane), a double click on a .Rdata file brings you to Rstudio but does not prompt nor load the data.
This issue can be avoided by manually closing the plot zoom window before trying to load the data.
Describe the behavior you expected
When double clicking a .Rdata file, I expect Rstudio to load it (or to prompt a load confirmation) in any circumstance, regardless of eventual open windows.


[ x] I have read the guide for submitting good bug reports.
 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.

Duplicate issue #15556: When Plot Zoom is opened as a window, RStudio does not open R file from the system call
Created: 2024-12-24T08:51:21Z
System details
RStudio Edition : Desktop
RStudio Version : RStudio 2024.12.0+467 "Kousa Dogwood" Release (cf37a3e5488c937207f992226d255be71f5e3f41, 2024-12-11) for windows

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2024.12.0+467 Chrome/126.0.6478.234 Electron/31.7.6 Safari/537.36, Quarto 1.5.54 (C:/Program Files/Quarto/bin/quarto.exe)
OS Version      :  Windows 11 Pro v. 23H2
R Version       :  4.4.0
Steps to reproduce the problem

Open RStudio
Execute any code that produces a plot, for example ggplot(iris, aes(x=Sepal.Length,y=Petal.Width))+geom_point()
In the Plot pane, click Zoom to open "Plot Zoom" window
From the system (for example, in Windows Explorer or other file manager), call default Open action for any RStudio-associated file such as .R or .Rmd - by double-clicking on it or through context menu.

Describe the problem in detail
Instead of opening the file in RStudio, it only activates Plot Zoom window.
Describe the behavior you expected
Expected to open the file in RStudio. If Plot Zoom window is not opened, the same steps result it normal opening of the file.


 I have read the guide for submitting good bug reports.
 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.
 I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

Closing comment (2024-12-24T16:11:30Z): @aushev Thank you for raising this! This is a duplicate of #15457 , although with .Rdata instead of .R and .Rmd. It's fixed in build 2024.12.1.522, which is available in the daily builds if you'd like to try it out. Please note that these are meant for development and testing purposes, not production.