tests/testthat/token_adding_removing/add_brackets_in_pipe-stylerignore-in.R

# styler: off
aflh({
  isfris %>%
    # comment
    tjnfaxasf12af7987A() %>% # comment
    tjnfaxdfaasfaf7987A() %>%
    tjnfxasfaf798fA() %>%
    tf797A() %>% # more
    # comment
    yyexprzB()
})
# styler: on


aflh({
  isfris %>%
    # comment
    tjnfaxasf12af7987A() %>% # comment
    tjnfaxdfaasfaf7987A() %>%
    tjnfxasfaf798fA() %>%
    tf797A() %>% # more
    # comment
    yyexprzB()
})


# styler: off
aflh({
  isfris %>%
    # comment
    tjnfaxasf12af7987A %>%
    tjnfaxdfaasfaf7987A %>%
    tjnfxasfaf798fA %>%
    # more
    tf797A %>% # comments
    # here
    yyexprzB #
  # whatnot
})
# styler: on


aflh({
  isfris %>%
    # comment
    tjnfaxasf12af7987A %>%
    tjnfaxdfaasfaf7987A %>%
    tjnfxasfaf798fA %>%
    # more
    tf797A %>% # comments
    # here
    yyexprzB #
  # whatnot
})

Try the styler package in your browser

Any scripts or data that you put into this service are public.

styler documentation built on Aug. 29, 2023, 5:10 p.m.