Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

fix strict with set_space_around_op #2

Merged
merged 1 commit into from
Aug 23, 2019

Conversation

lorenzwalthert
Copy link

Reference: mlr-org/mlr#2498 (comment).

Fix was needed because a function gained a strict argument. Also, note that now, alignment is detected (function calls only). For example:

library(styler)
style_text(
  "call(
    a  = 1,   f(x),
    b  = 3, fff(x)
  )",
  style = mlr_style
)
#> call(
#>   a  = 1,   f(x),
#>   b  = 3, fff(x)
#> )

Created on 2019-08-22 by the reprex package (v0.3.0)

See https://styler.r-lib.org/articles/detect-alignment.html for details on when styler detects things as aligned and the discussion for developing alignment detection in r-lib#258.

@pat-s
Copy link
Owner

pat-s commented Aug 23, 2019

Thanks! 🚀

@pat-s pat-s merged commit d20649c into pat-s:mlr-style Aug 23, 2019
@lorenzwalthert lorenzwalthert deleted the mlr-style branch August 23, 2019 11:08
@lorenzwalthert lorenzwalthert restored the mlr-style branch October 16, 2019 14:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants