Why doesn't rstudio autocomplete the left_join() "by" columns when using pipes?

Viewed 84

Make a little example data:

library(tidyverse)
test <- tibble(test = "test")

If I start typing it this way:

left_join(test, test, by = c(

I can press TAB at that point and Rstudio will drop in the column "test" with the quotes around it exactly how left_join() likes it. Very nice. I can mash "tab", "=", "tab" and bob's your uncle it's all done.

If I do it the pipes way, I get no such luxury.

test %>% left_join(test, by = c(

I'm mashing away at TAB and getting the little (No matches) popup.

Odd, becasue if I type:

test %>% filter(

and press TAB then I'm getting the column popping up in the drop-down just like one would expect.

Is there a setting somewhere I'm missing?

EDIT: screenshot after pressing tab: enter image description here

0 Answers
Related