-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Completion gets worse after turning on R console #95
Comments
Yes, this is the expected behavior. We can discuss and change the expected behavior, but, currently, both the Object Browser and auto-completion reflect what is loaded in R's memory. Suppose that you are sending lines one at a time and that a specific But, as I said, we can change the default behavior to:
|
Thanks for your reply. I don't know what the expected behavior should be. I don't think that Rstudio will autocomplete objects not in the memory, on the other hand I wouldn't expect that the scope of autocompletion gets smaller after we call R. Option 1 won't work because it will not autocomplete variables defined in the script that has not yet been committed to memory. Anyway, thanks for your work. |
1, 2, and 3 are not options. It's a sequence of how it would behave. Currently, the sequence is:
Objects created in the R code are not recognized before being created in R's memory because |
alright, got it |
Hi, I am not sure if this is an expected behavior, or a bug, or a wrong config on my side, but I am observing the following behavior:
When I open an .R file, the completion works according to what is in the file, so for example, if the file contains
library(ggplot2)
I will be offered all ggplot variables for the completion, but then I run R using<leader>rf
completion no longer works for ggplot, it works only for base R things and it works for ggplot again only after I run the code in the R console. Sorry for a convoluted explanation, I hope it is understandable anyway.The text was updated successfully, but these errors were encountered: