Autocompletion does not work in R terminal inside square brackets

955 views Asked by At

I am using R from the command line and noticed that autocompletion of list names does not work when inside square brackets. Consider this example:

myList <- list(firstElement=sample(1:10), secondElement=sample(1:10))

Typing out myList$f and then pressing tab gives myList$firstElement

But does not work here (at myList$s inside the brackets):

myList$firstElement[myList$secondElement > 5]

My question is - why it does not work and is there something one can do to make it work?

1

There are 1 answers

0
Greg On BEST ANSWER

Putting the term inside round brackets seems to work

myList$firstElement[(myList$

No idea why it doesn't autocomplete without this though.