Karolis Koncevičius
Karolis Koncevičius

Reputation: 9656

Autocompletion does not work in R terminal inside square brackets

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?

Upvotes: 2

Views: 979

Answers (1)

Greg
Greg

Reputation: 209

Putting the term inside round brackets seems to work

myList$firstElement[(myList$

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

Upvotes: 1

Related Questions