假设我们运行多行R代码,我们怎样才能停止all行代码在进行中?
Example
If the following 3 lines of code are copy/pasted into the R console in RStudio and we press enter, this will take 3 Esc or ctrl + c to stop (one press for each command). Alternatively, pressing the red Stop
button in the RStudio gui also must be done three times (once per command)
Sys.sleep(10)
Sys.sleep(10)
Sys.sleep(10)
我们怎样才能停下来all通过一个操作执行 R 代码行?
到目前为止我所知道的
- For some reason, when running R from terminal, a single ctrl + c is enough to stop all lines of code
- The only solutions I have for stopping all lines of code in RStudio are to tap Esc or ctrl + c continuously until all lines have been cancelled (inconvenient to say the least), or, to abort the R session (typically undesirable)
- 有一个类似的问题 https://stackoverflow.com/questions/22133577/how-to-forcefully-exit-a-multi-line-command-in-r which 不同之处在于它不是多行上的多个命令 https://stackoverflow.com/questions/22133577/how-to-forcefully-exit-a-multi-line-command-in-r?noredirect=1#comment108057279_22133577
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)