Skip to content

compact trycatch #1265

@kongdd

Description

@kongdd
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))
  }
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions