使用一些R Studio常见的快捷键,会让你书写R 时事半功倍:
- 注释/取消注释当前行(代码块):
Ctrl+Shift+C
- 插入代码块:
Ctrl+Alt+I
;Mac:option + cmd + i
- 运行光标所在行的代码:
Ctrl+Enter
;Mac:cmd + enter
- 运行当前光标所在行的代码块:
Ctrl+Shift+Enter
。 - 在终端中 运行当前 代码:Mac
option + cmd + enter
- tidyverse pipeline %>%: Mac
shift + cmd + M