-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
R support #182
Comments
It's hard to propose a general solution for that. There are two ways you can lint files while you type. You can either save a temporary file in the same directory, or you can use the text buffer in Vim and send the text via stdin to the program. Both have their issues, and ALE does the latter. Is the only problem finding the |
Hello @mllg and @w0rp! I am please to learn that you have setup a linter for R. I also do a lot of programming in R and I am wondering if you can post the details of your solution here. Even if the solution is not general-purpose, I anticipate that others like myself would benefit from it. Finally, @w0rp, thanks for developing Ale! I use this on a very regular basis and would enjoy using it even more if it was fully integrated with lintr. |
I might see if I can merge this and use the |
Hi @w0rp! Once again, thanks for developing Ale. I use it very regularly and find that it is a great addition to my writing and programming workflow in vim and neovim. If you could add this feature to an upcoming version of Ale, then I would be glad to test it on my Ubuntu 16.04 development workstation running:
Again, I have numerous R code bases and I would be glad to test this linter once it is integrated. Thanks again! i look forward to testing out this linter in the near future. |
@gkapfham Cool, thanks. There are some languages I don't use frequently, and R is one of them, so getting some of the linters to work well depends on others testing them against real projects. I marked this with the milestone for the version after the one I'm working on now. It'll get done eventually. |
I have added support for |
* origin/master: Remove the issue template note about the log_output option, now it's on by default. Store the output of commands by default so I don't have to ask people to turn it on any more. Fix dense-analysis#216 - Filter out errors for other files for ansible-lint Fix dense-analysis#182 - Add support for lintr Fix dense-analysis#178 - Check Stylus files with stylelint Drop "only master branch" travis restriction Add a function for fixing the alignment of Vim help tags
Hello @w0rp, I am writing to confirm that the integration with In summary, thanks again for developing |
I've setup a linter for R using the lintr package here: https://github.com/mllg/ale. This was ridiculously easy!
The only hindrance is that lintr does not support stdin and at the same time the script needs to be executed in the directory of the buffer to find
.lintr
config files. Probably the same problem as in #173. Are there any plans on implementing a general solution (like an option to set the directory or a flag signaling whether the command should be run in the same directory as the buffer or not)?The text was updated successfully, but these errors were encountered: