force_assignment_eq: Force the assignment operator '=' when possible

View source: R/rules-line-break.R

force_assignment_eqR Documentation

Force the assignment operator = when possible

Description

Because you can't determine from a nest with ⁠<-⁠ what the context is, we need to do it from the parent.

Usage

force_assignment_eq(pd)

Examples


# identical
styler:::create_tree("x <- 2")
styler:::create_tree("c(x <- 2)")


lorenzwalthert/styler.yours documentation built on April 17, 2025, 6:25 p.m.