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

Get chunkwise on.exit() working #201

Closed
hadley opened this issue Jul 3, 2024 · 0 comments · Fixed by #204
Closed

Get chunkwise on.exit() working #201

hadley opened this issue Jul 3, 2024 · 0 comments · Fixed by #204

Comments

@hadley
Copy link
Member

hadley commented Jul 3, 2024

@lionel- has a hack to fix this:

evaluate::evaluate(c(
  "on.exit(print('bye'))",
  "print('hi')"
))
#> <evaluation>
#> Source code: 
#>   on.exit(print('bye'))
#> Text output: 
#>   [1] "bye"
#> Source code: 
#>   print('hi')
#> Text output: 
#>   [1] "hi"

Created on 2024-07-03 with reprex v2.1.0

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 a pull request may close this issue.

1 participant