RStudio code completion algorithm is always suggesting some abstract and not-even-close-to-what-i-want suggestions.
I am not expecting it to be as good as the one inside IntelliJ or PyCharm or Jupyter but it is ridiculous most of the time. I feel like he is trolling me with suggestions.
For example, let's say that I have this simple snippet given below.
rm(list = ls())
library(caret)
library(stats)
prediction <- c(0, 0, 1)
And that I want to see how prediction looks like by typing
prediction
Let's assume that I am too lazy to type it all the way through and am hoping to get some help from my IDE.
These are the results:
I don't understand how can methods from outside libraries have priority over a variable created inside of my local environment.
Until I type it almost all the way RStudio won't offer me what I need.
Am I doing something wrong?
Is there anything I can do on my end to improve this?
P.S. I am using RStudio 1.1.419 on Ubuntu 18.04, if it means anything to anyone.