matt-dray / r2eng

:speaking_head::speaker: R package: translate R to English
https://matt-dray.github.io/r2eng/
Other
17 stars 5 forks source link

Style the R expression before translation #2

Closed matt-dray closed 4 years ago

matt-dray commented 4 years ago

Use {styler} for consistency of input: https://styler.r-lib.org/

So style_text("variable<-1") will output "variable <- 1".

This is useful for the step that involves splitting out the R symbols (e.g. strsplit() over spaces).

matt-dray commented 4 years ago

This isn't needed now that {lintr} parses the expression. Closed with #3.