Issue
I don't know if it has to do with a new version of RStudio or what, but before when I ran a code and an error was encountered R did not stop at the error and it kept running all the selected code or text. However, now whenever an error is encountered R stops. For instance, when I run this code,
Example error
plot(cars)
I only get this result:
> Example sentence
Error: unexpected symbol in "Example sentence"
I'd like R to run all the code, whether there are errors or not, by default. How can I do that?
Solution
You're absolutely correct about this being related to a new version of RStudio; this behavior changed in a recent release (2022.07) because -- most of the time -- if your code encounters an error there's no point in running the remainder of it, plus you want to stop and look at the error.
We're considering making this behavior optional since a lot of people prefer the old behavior. Please comment/upvote this feature request:
https://github.com/rstudio/rstudio/issues/10391
Answered By - Jonathan Answer Checked By - David Marino (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.