posit-dev / positron

Positron, a next-generation data science IDE
Other
2.48k stars 77 forks source link

R's native placeholder not recognised in chained `data.table` steps #3749

Open Fred-Wu opened 3 months ago

Fred-Wu commented 3 months ago

Thanks for the new IDE. I normally use R's native placeholder _ in chained data.table steps. However, in the below step, symbols are not recognised.

image
juliasilge commented 3 months ago

The diagnostics problem here may be specific to how _ is used in data.table. This code, for example, has correct diagnostics:

mtcars |> lm(mpg ~ cyl, data = _)
Fred-Wu commented 3 months ago

Something like below also raises error using data.table, but was suggested by the code completion.

image image

OR

image