I would like to study the autocomplete code of R, when R is run in a terminal. For example, if you run R from the terminal and type lm(
and then tab, R will give you the arguments of lm
.
Dirk's answer here suggests that autocompletion of R is supported by the codetools package which is in base R:
Is it possible to get code completion for R in Emacs ESS similar to what is available in Rstudio?
However, I can't find where in that package it adds support for autocomplete. I grepped for 'completion' and came up empty.