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

Refine calling handlers #144

Merged
merged 7 commits into from
Jun 19, 2024
Merged

Refine calling handlers #144

merged 7 commits into from
Jun 19, 2024

Conversation

hadley
Copy link
Member

@hadley hadley commented Jun 17, 2024

Fixes #145

@hadley hadley requested a review from lionel- June 17, 2024 15:20
@hadley hadley changed the title Combine calling handlers into a single call Refine calling handlers Jun 18, 2024
@hadley
Copy link
Member Author

hadley commented Jun 18, 2024

@lionel let me know if you see a simple way to wrap handle into handlers, otherwise I'll tackle that in a future PR.

R/eval.R Show resolved Hide resolved
Co-authored-by: Lionel Henry <[email protected]>
Comment on lines +213 to +215
tryCatch(code, error = function(err) {
list(value = NULL, visible = FALSE)
})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does seem like it would be easier to understand the return type if this was closer to the withVisible call

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll simplify this further after #153 since it turns out that we don't actually need to capture the visibility of the printed value.

@hadley hadley merged commit 22d21bd into main Jun 19, 2024
13 checks passed
@hadley hadley deleted the combine-handlers branch June 19, 2024 09:36
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

Successfully merging this pull request may close these issues.

Error after value repeats output
2 participants