Skip to content

Global setting for success_fun & error_fun? #79

@shippy

Description

@shippy

I wanted to get feedback on potentially writing a PR implementing this. I'm imagining something along the lines of

options(assertr.success_fun = assertr::success_logical)

Use case: many independent chains, such that it's annoying to set success_fun for every assertr call / chain_end(success_fun = ...) call.

My current workaround is chain_end_quiet <- function(x) return(chain_end(x, success_fun = success_logical, error_fun = error_logical)), but that requires me to specify an assertr chain for each independent inquiry.

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