-
Notifications
You must be signed in to change notification settings - Fork 187
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
Behavior of lintr before/after calling library #382
Comments
ale is calling lintr in a new process, not the current process. Probably we should be loading libraries as well, but lintr is currently mostly geared towards package development rather than scripts unfortunately. |
Thanks a lot for the answer! I totally understand and would be interested in implementing this feature if you had a few tips or a small "roadmap". |
I just installed the latest version on master and the issue is still I think... |
Actually, my two remarks/questions still stand. I just tried
|
Hi,
I use neovim with ale + Nvim-R and it got me wondering about how lintr works.
Let's say that I have the following file called
test.R
:If I start a new R session and call
lintr::lint("test.R")
, I get a marker related to the second map ("no visible global function definition"), whereas if I calllibrary(purrr)
first, I do not get a marker.map
?lintr::lint
afterlibrary
), how doeslintr
"knows" thatmap
is "available"?While I ask the first question by curiosity, I ask the second question because, as mentioned, I use ale and Nvim-R. In this context, although I often load packages in the R session opened with Nvim-R, the markers for missing global function definitions never disappear after loading the appropriate packages.
This is obviously expected since, to the best of my knowledge, there is no connection between ale and Nvim-R. But I am trying to understand where
lintr
looks for the information about the loaded namespaces with the final goal to get ale to use the current Nvim-R session to make the markers related to global function definitions from packages that are loaded disappear.I am not sure whether I explained clearly the issue, my apologies if not.
The text was updated successfully, but these errors were encountered: