Skip to content

Guidelines/best practices on exporting adverb-wrapped functions from packages #668

@sheffe

Description

@sheffe

insistently() and safely() have been lifesavers for my team, particularly in solving problems where low failure rates over large-scale API call queues and read/write operations would break long-running processes. Interacting with AWS S3 from R is much easier now.

Are there any recommendations/best practices for including adverb-wrapped functions in packages? Since the release of insistently() I’ve never called (eg) the aws.s3::put_object() function directly. Every script starts with creating wrappers for insist_*. I’d like to move the wrapped functions to an internal package, and maybe propose to include an insistent option in the main package. However, I haven’t seen any packages that export safe_* or insistent_* function variants to date, and that’s a good sign I'm planning to do something without full understanding of the side effects.

(First time filing an issue here -- thank you! purrr is the single largest productivity boost I've had in >10 years of writing R code...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions