style_text("call( 1)", style = tidyverse_style, scope = "spaces")
style_text("call( 1)", transformers = tidyverse_style(strict = TRUE))
style_text(c("ab <- 3", "a <-3"), strict = FALSE) # keeps alignment of "<-"
style_text(c("ab <- 3", "a <-3"), strict = TRUE) # drops alignment of "<-"
# styling line breaks only without spaces
style_text(c("ab <- 3", "a =3"), strict = TRUE, scope = I(c("line_breaks", "tokens")))
Run the code above in your browser using DataLab