-
Notifications
You must be signed in to change notification settings - Fork 73
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
How to keep =
as the assignment symbol?
#860
Comments
The tidyverse style guide does not support |
@lorenzwalthert Thanks for your response and suggestion. I am looking for a solution from the tool itself or a workaround from setting in |
There is no solution from the tool itself, i.e. an out-of-the-box way of doing it., and we don't aim at providing one. If you were serious about it, you have to write your own style guide as an R package, i.e. the same way as the reference implementations. Then, you have the full flexibility with vs code, RStudio addin and {precommit}. Maybe someone else already did it, but I don't know of any. |
Thanks. |
if you develop such a package (it's not much code, as you see in the reference implementation), we can link it in the vignette. There is also https://github.com/ropensci-review-tools/spaceout. |
@lorenzwalthert Thanks for providing a good reference. I will take a try. |
Actually the best reference is probably https://github.com/lorenzwalthert/semicoloner. You can also c/p all of it and adapt where necessary. |
Let me try to create a GitHub template repo for it. |
@lorenzwalthert :) Thanks again. |
@lorenzwalthert If you use the solution for this as a template, I think I can get rid of coding for this. Hah 😄 |
Here is the template repo with the rule you wanted: https://github.com/lorenzwalthert/styler.yours |
Related: #340. |
Heads-up @lorenzwalthert and @ShixiangWang I have created a minimal {styler.equals} package building on Lorenz's great template: https://github.com/Robinlovelace/styler.equals Want to join forces on this @ShixiangWang? It's not yet CRAN ready as it has this message on checks, is this something that's worth fixing upstream, in the template @lorenzwalthert ?
|
Dear developers,
Thanks for developing this awesome tool. Sometimes I want to use a style that keep using
=
instead of<-
of assignment symbol. Is there any easy way to do this? I check the functions but nooptions
can be used for this setting likeformatR
.BTW, the package
languageserver
provide a way to do this in VScode with:I don't know how to apply this for
styler
as no object can be assigned back.Best,
Shixiang
The text was updated successfully, but these errors were encountered: