Skip to content

Q4 in 8.4.5. catch_cnd source changed #1808

@FGL-Linear

Description

@FGL-Linear

Citing Advanced R solutions:

At the time Advanced R was written, the source for catch_cnd() was a little simpler

catch_cnd <- function(expr) {
  tryCatch(
    condition = function(cnd) cnd,
    {
      force(expr)
      return(NULL)
    }
  )
}

Maybe it would be a good idea to include the old source to the question.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions