Is there any add-in for RStudio (or some other software/IDE), that would go through all my past R codes (saved in some folder), and try to predict what I am about to type, or show in which files I have used this function before?
For example at the moment prediction works well for known (installed packages). Like when we type lapply( + [TAB] window pops up with suggestion about arguments and help excerpt.
This is great, but when we vaguely remember the function name/package and start typing, and it will try to guess, and point to previous R files where I have used the similar functions. For example: when I type venn, it will pop up as:
Are you thinking about something like Smart Compose, but for code?
There's a nice description of how RStudio autocomplete works here (though I don't think it does what you're describing):
Not totally sure how this works, but it's a VS Code add-on that does autocomplete based on all open documents (so it wouldn't be a saved stash, but I guess you could open them allβ¦)
Same goes for IntelliSense, which, in my experience doing some coding in other languages in VS Code, definitely suggests things that are words but not commands:
Well, definitely report back if you think of it! The closest I can imagine right now is to create a gmail account where you write all of your code. Obviously that has some other drawbacks.