Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I clear all the Source (aka View) tabs in Rstudio?

I did a bad thing and ran View(row) 8000 times using apply.

Now I have 8000 tabs in my Source pane (top left) in Rstudio.

Does anyone know how to clear them all in one fell swoop? Otherwise I'm doomed to control-W A LOT.

Things I've already tried:

  • Moving .RData
  • Moving .Rhistory
  • Google searching "rstudio clear source" "rstudio delete tabs" etc.

Thanks in advance!

like image 613
PersianExcursion Avatar asked Jul 29 '13 14:07

PersianExcursion


1 Answers

I know that if you hit

Ctrl + Shift + W

it will close all the tabs. The same option is also under

File > Close All

So just save the tab you wanted and close all.

like image 153
Harrison Jones Avatar answered Oct 26 '22 15:10

Harrison Jones