In RStudio is there a way to automatically align the equal signs in function arguments?
Similar to the following:
objective = obj,
eta = params$eta[i],
gamma = params$gamma[i],
max_depth = params$max_depth[i],
colsample_bytree = params$colsample_bytree[i],
colsample_bylevel = params$colsample_bylevel[i],
lambda = params$lambda[i],
alpha = params$alpha[i],
subsample = params$subsample[i])
I find this much easier to read. If it is not available in RStudio is there a different editor which has this capability?
Another option is {remedy}, which is also on CRAN.
That package include addins for aligning equal signs =
and assignments <-
, plus other addins for working with markdown documents.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With