ManuelHentschel / VSCode-R-Debugger

R Debugger Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=RDebugger.r-debugger
MIT License
170 stars 11 forks source link

what caused error unexpected '{' #181

Closed litn2018 closed 11 months ago

litn2018 commented 11 months ago

just try to create a function as

scatter_by <-function(data, ...) {
ggplot(data)

this code has no problem in Visual Studio, but got an error in VS Code on WSL:

Platform: x86_64-pc-linux-gnu (64-bit)

r$> scatter_by <-function(data, ...) { }

r$> ggplot(data) Error in ggplot(data) : could not find function "ggplot"

r$> + geom_point(aes(...)) Error in geom_point(aes(...)) : could not find function "geom_point"

r$> } Error: unexpected '}' in "}"

r$>

any idea? thanks

litn2018 commented 11 months ago

sorry, typo, no problem in RStudio. thanks.

litn2018 commented 11 months ago

never mind, the extension setting got changed after update, R: Bracketed Paste got unchecked.

litn2018 commented 11 months ago

after re-check it, the code has no problem, by the way, radian is used