Similar to this topic (Possible bug? RStudio opens multiple tabs).
Rstudio open multiple tabs (calling View(), without the script calling View()) with inconsistent behavior.
How I can best describe the behavior:
- Usually does not happen with "Restart R and Run all Chunks". If this does happen it spams with so many tabs it can freeze windows for a couple min.
- Most often happens when I highlight a few lines then use Ctrl+Enter
- Once the behavior starts it is very consistent until I close/restart R or Rstudio
- One line of script can open multiple tabs
- I have only seen this behavior from running code in the script, not from the console.
I have used the link's suggested debugonce(View), this is displayed in the screen shots below:
- entered debugonce(View)
- highlighted and Ctrl+Enter the following:
thisplot$Question = factor(thisplot$Question, levels = c('Office hours/meetings with my instructor',
'Group activities',
'Peer teachers/tutors',
'Hands-on engagement with content',
'Audio',
'Discussions',
'Recorded lectures',
'Class handouts',
'Collaborative/shared documents',
'E-textbooks or required readings',
'Video',
'Quizzes',
'Presentation slides',
'Study guides',
'Exams',
'Class/lecture notes',
'Homework assignments'))
3)Debug opened this:
- if I click Continue I get 8 new tabs of thisplot:
I am using:
"Cherry Blossom" Release (3c53477a, 2023-03-09) for Windows
R version 4.2.3 (2023-03-15 ucrt) -- "Shortstop Beagle"
Copyright (C) 2023 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
Packages loaded:
library(plyr)
library(dplyr)
library(ggplot2)
library(knitr)
library(kableExtra)
library(tidyr)
library(nlme)
library(tidyverse)
library(psych)
library(RColorBrewer)
library(pracma)
library(formattable)
library(data.table)
library(readxl)
library(PerformanceAnalytics)
library(stringr)
library(forcats)