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?
Putting the term inside round brackets seems to work
No idea why it doesn't autocomplete without this though.