Describe the bug
Errors do not stop code execution
To Reproduce
- Create a R file with the following content:
x <- 2
stop("stop here!")
x * 2
- Select all (ctrl+A)
- Send to terminal (ctrl+enter)
- The line after
stop() in executed anyway:
> x <- 2
> stop("stop here!")
Error: stop here!
> x * 2
[1] 4
Can you fix this issue by yourself? (We appreciate the help)
No
Expected behavior
Code execution should stop when an error is thrown.
Environment (please complete the following information):
- OS: Windows
- VSCode Version: VSCodium 1.112.01907
- R Version: 4.4.0
- vscode-R version: 2.8.8
Describe the bug
Errors do not stop code execution
To Reproduce
stop()in executed anyway:Can you fix this issue by yourself? (We appreciate the help)
No
Expected behavior
Code execution should stop when an error is thrown.
Environment (please complete the following information):