RStudio version behavior RE browser() function

Hey RStudio community, first post here so apologies if this has been answered or if this is not the proper avenue to ask.

Context: We've moved machines in my office and my new cloud-based desktop has a much newer version of RStudio (Ghost Orchid) than the one I was using previously (Tiger Daylily). I've been using this new version for a few weeks now and have noticed some subtle differences around debugging/use of the browser() function that are, respectfully, annoying. Everything I'm about describe is within a debug/browser() context/environment.

  • If I'm actively editing and running code from my file (I've popped out the file to put it on a different screen), my active cursor will shift back to the main RStudio window after every line of code.
  • Even if I already have the file open, RStudio will sometimes open another copy of the file with the browser() call inside of it (Tiger Daylily did this as well, but maybe there is a setting to turn off this behavior).
  • The "debug window" which looks like another tab, but the icon is a pair of glasses and you can't edit any of the code inside, will open over and over even after closing while within the browser() environment.

Not sure if this is vague or if anyone else has come across this already. Looking for any recommendations from changing app settings, installing a different version of RStudio, or even if there is a more convenient method of debugging besides the browser() function. Any help is appreciated, thanks everyone.

Fraser

What version of 2021.09 are you using, specifically? The initial release of 2021.09 is nearly a year old and we've made a number of fixes to the debugger since (as well as added a new release, 2022.02!)

Hey Jonathan, the version I'm using (per the Help page) is:

RStudio 2021.09.2+382 "Ghost Orchid" Release (fc9e217980ee9320126e33cdf334d4f4e105dc4f, 2022-01-04) for Windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36

I actually just got prompted this morning to upgrade to 2022.02 so I'll give that a shot as well. Thanks for your message,

Fraser

Just an update, I've been using:

RStudio 2022.02.3+492 "Prairie Trillium" Release (1db809b8323ba0a87c148d16eb84efe39a8e7785, 2022-05-20) for Windows Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36

for a few days now and the behavior is more like what I'm used to. Have not encountered the 1st and 3rd point from the OP specifically since I upgraded my version. Thanks for the help @jonathan I consider this issue resolved.

This topic was automatically closed 7 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.