tryCatch({
}, error = function(e) {
message(sprintf('%s', e$message))
})
The above compact script often formatted into following loose style. Any solution how to avoid this?
This problem has troubled me for a long time.
tryCatch(
{
1
},
error = function(e) {
message(sprintf("%s", e$message))
}
)
tryCatch({ }, error = function(e) { message(sprintf('%s', e$message)) })The above compact script often formatted into following loose style. Any solution how to avoid this?
This problem has troubled me for a long time.
tryCatch( { 1 }, error = function(e) { message(sprintf("%s", e$message)) } )