Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helpers for extracting side effects #5

Open
jimjam-slam opened this issue Nov 21, 2018 · 2 comments
Open

Helpers for extracting side effects #5

jimjam-slam opened this issue Nov 21, 2018 · 2 comments
Milestone

Comments

@jimjam-slam
Copy link
Owner

Extracting the results from a collateral list-column isn't too hard: map(my_safe_column, 'result').

Other side effects are a little trickier, though: the messages from errors are wrapped inside an object along with other text, and there can be several warnings, messages or other outputs for each element. Should collateral provide helpers to quickly provide companion columns with collapsed versions of these?

@MatthieuStigler
Copy link

that would be great, and indeed, issue is that warnings might multiple, so that would create a n issue. But maybe still having a function that helps mutate() the 2/4 slots of safely/quietly as columns, or return the output of safely/quietly as data_frame would be already a goof first step? In general, I found that handling the output of safely/quietly to be quite cumbersome!

@jimjam-slam
Copy link
Owner Author

I think they're definitely worth including in a prescriptive way! Whatever we settle on, the functions won't actually be super complicated, and people can always write their own alternatives if they'd prefer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants