File chooser opens behind RStudio window

When opening a file with file.choose() from the RStudio console or programmatically from an Addin, the file selection dialog often opens behind the RStudio window. The only indication that the window has opened is a new icon on the task bar, which is easily overlooked. This is particularly confusing to new users of my Addins - it appears that RStudio and the Addin have frozen.

Why does this happen? How can I get the file chooser window to open in front of the RStudio window?

I'm currently using R 4.0.2 and RStudio 1.3.1093 on Windows 10 but this is a long-standing issue that pre-dates these versions of R and RStudio.

Thanks,
Kent Johnson

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.