I'm really interested in how different R syntaxes function for learners pedagogically (see my syntax comparison cheatsheet, and associated FAQ). Personally, I'm moving away from the formula syntax in my teaching and toward the tidyverse syntax. I've been anti-base-R-for-teaching for a long while. However, I recently realized not using base syntax has a major disadvantage-- no autocompletion!
If I type
mean(mtcars$ and hit tab, I get a little dropdown of all the variables in my dataset. Not so with
mtcars %>% filter(
and hit tab. I understand why typing
and hitting tab doesn't give me anything, because it would have to search the entire environment/namespace for possibilities. I'm not a software developer, but it seems like the first example would be doable, because piping the data into the
filter() command limits the environment to just that dataset. Are there any plans to improve autocompletion for other types of syntax?