R Studio:ctrl + shift + enter仅运行整个代码而不是选定的行

时间:2016-09-12 02:17:28

标签: r rstudio

我正在使用R Studio,但我遇到了一个问题:ctrl + shift + enter正在运行整个代码,而不是仅运行选定的行。我总是可以使用"运行",但我习惯于按住Ctrl + shift +输入...有人知道如何解决这个问题?

2 个答案:

答案 0 :(得分:5)

文档here

Run current line/selection Ctrl+Enter
Run current line/selection (retain cursor position) Alt+Enter

答案 1 :(得分:1)

要仅运行您选择的内容,请使用ctrl + enter(cmd +在Mac上输入)。离开班次。

使用许多RStudio命令查看以下链接以获取备忘单。

https://www.rstudio.com/resources/cheatsheets/