Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

View() keyboard shortcut

Tags:

r

rstudio

I just got done browsing the keyboard shortcuts for RStudio and I can't find one for View(). Does this exist in any form?

I'd like to highlight any data frame in my source pane and hit Ctrl+X+Y+Z or whatever to see the spreadsheet view of my data frame in RStudio. I often create data frames and I have to jump to the console and type View(data_frame) to make sense of the data frame. Because the tibble view is too condensed. I know I can highlight the data frame in source and Ctrl+Enter but that just yields the condensed tibble view.

like image 755
stackinator Avatar asked Dec 02 '22 10:12

stackinator


1 Answers

Although not documented, F2 should work in recent RStudio versions.

(It does work for me for version 1.1.423 on Linux and Windows, but this issue is still open on their GitHub.)

like image 122
Scarabee Avatar answered Dec 04 '22 11:12

Scarabee