If "my friend" made the foolish mistake of entering the following code in RStudio, how would I (I mean, he!) break out of the loop (without restarting R)?
while (TRUE) readline()
You can restart the R session within RStudio using: Ctrl+Shift+F10
in Windows or Command+Shift+F10
in Mac. The workspace and the command history won't be cleared so, I suppose, it would be as if you broke out of the loop.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With