【问题标题】:R Studio: ctrl+shift+enter runs the entire code instead of the selected lines only [closed]R Studio:ctrl+shift+enter 运行整个代码,而不是仅运行选定的行[关闭]
【发布时间】:2017-01-19 10:25:15
【问题描述】:

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

【问题讨论】:

  • 我一直使用 ctrl+enter 来运行选定的行。
  • 谢谢,我一定是对另一个程序感到困惑。

标签: r rstudio


【解决方案1】:

文档here

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

【讨论】:

  • 感谢 Alt+Enter 提示!
  • @Josh 非常欢迎您!很高兴听到这些信息仍然有用。祝您分析顺利
【解决方案2】:

要仅运行您选择的内容,请使用 ctrl+enter(在 mac 上为 cmd+enter)。离开轮班。

查看以下链接以获取包含许多 RStudio 命令的备忘单。

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

【讨论】:

    猜你喜欢
    • 2012-09-27
    • 1970-01-01
    • 2021-11-29
    • 1970-01-01
    • 2012-07-03
    • 2020-09-08
    • 2018-04-24
    • 1970-01-01
    • 2019-06-17
    相关资源
    最近更新 更多