We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
styler removes spaces before $ but not after:
$
library(styler) # OK style_text("mtcars $disp") #> mtcars$disp # Not OK style_text("mtcars$ disp") #> mtcars$ disp style_text("mtcars $ disp") #> mtcars$ disp
Created on 2024-12-06 with reprex v2.1.1
According to section 2.2.4 of the tidyverse style guide, $ "should never be surrounded by spaces":
There are a few exceptions, which should never be surrounded by spaces: The operators with high precedence: ::, :::, $, @, [, [[, ^, unary -, unary +, and :.
There are a few exceptions, which should never be surrounded by spaces:
::
:::
@
[
[[
^
-
+
:
I used styler 1.10.3.9000, 2f1cc9b.
The text was updated successfully, but these errors were encountered:
Works now as expected, thanks!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
styler removes spaces before
$
but not after:Created on 2024-12-06 with reprex v2.1.1
According to section 2.2.4 of the tidyverse style guide,
$
"should never be surrounded by spaces":I used styler 1.10.3.9000, 2f1cc9b.
The text was updated successfully, but these errors were encountered: