Skip to content

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.

Co-authored-by: Lionel Henry <lionel.hry@gmail.com>
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
@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

3 participants