I cannot run a chunk of code (a subset of my .r script files) without getting an error message. When I run the whole R file (pressing run source) or row by row, I can run the code without any problems.
The error messages that I get by highlighting a subset of my code are:
Error in `+.gg`:
! Can't add `xlim(697200, 700200)` to a theme object.
Run `rlang::last_trace()` to see where the error occurred.
Error: unexpected ')' in "
Error: object 'utm_bir' not found
> table(bitable(bitable(bitable(bitable(bitable(bi
+
+ bibibibibibibibibibibibibibibibibibibibibibibibib1:2bibibibibibibibibibibibibibibibibibibibibibibibib1:2bibibibibibibibibibibibibibibibibibibibibibibibib1:2bibibibibibibibibibibibibibibibibibibibibibibibib1:2bibibibibibibibibibibibibibibibibibibibibibibibib1:2bibibibibibibibibibibibibibibibibibibibibibibibib1:2bibibibibibibibibibibibibibibibibibibibibibibibib1:2bibibibibibibibibibibibibibibi = "red") +
Error: unexpected symbol in:
"
bibibibibibibibibibibibibibibibibibibibibibibibib1"
> bibibibibibibibibibibibibibibibibibibnutm,
Error: unexpected ',' in "bibibibibibibibibibibibibibibibibibibnutm,"
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'x' in selecting a method for function 'plot': object 'for_sit_coord' not found
> plot(bird_sit_coord$lon, bird_sit_coord$lat)
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'x' in selecting a method for function 'plot': object 'bird_sit_coord' not found
For some reason, I get syntax errors when only a smaller part of my file is sent to the console.
I’m using a macOS 14.5 (23F79)
I reinstalled VScode 3 times and changed my settings, but nothing seems to solve this.