开发者

How do I get to the next line in the R command prompt without executing?

开发者 https://www.devze.com 2023-04-04 10:25 出处:网络
The question is so simple I can\'t seem to开发者_Go百科 find an answer.Use\'SHIFT-ENTER\' to get to a new line in R without executing the command.Note for mac users: On mac is Ctrl + Enter x <- c(1

The question is so simple I can't seem to开发者_Go百科 find an answer.


Use'SHIFT-ENTER' to get to a new line in R without executing the command.


Note for mac users: On mac is Ctrl + Enter


x <- c(1,2,3.5,4,5,6,7,8,9,10,11,12,13,14,15,
+ 16,17,18,19,20)

I did not write the “+” at the outset of the second line. If you hit the return key after the last comma on the first line, the plus sign will be produced by R as a new prompt and you can go on typing in the rest of the numbers.


If you are a mac user, try "Option + Enter", which works for me in R 4.1.2 (High Sierra).

0

精彩评论

暂无评论...
验证码 换一张
取 消