Closed litn2018 closed 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
sorry, typo, no problem in RStudio. thanks.
never mind, the extension setting got changed after update, R: Bracketed Paste got unchecked.
after re-check it, the code has no problem, by the way, radian is used
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