Skip to content

Add support for on.exit() and defer() - #1377

Merged
lionel- merged 1 commit into
mainfrom
oak-nse/18-on-exit
Aug 3, 2026
Merged

Add support for on.exit() and defer()#1377
lionel- merged 1 commit into
mainfrom
oak-nse/18-on-exit

Conversation

@lionel-

@lionel- lionel- commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Progress towards #1338

Add handlers for on.exit() and defer(). For Oak's analysis purposes, these have the same semantics as rlang::on_load() which we used as model for Current + Lazy scope until now.

(It took me way too long to figure out these have the same scoping behaviour.)

Positron Release Notes

New Features

  • N/A

Bug Fixes

  • N/A

@lionel-
lionel- force-pushed the oak-nse/18-on-exit branch from 87d846c to ef668e6 Compare July 31, 2026 07:08
@lionel-
lionel- force-pushed the oak-nse/18-on-exit branch 2 times, most recently from 2162295 to 7178beb Compare July 31, 2026 14:23
@lionel-
lionel- force-pushed the oak-nse/18-on-exit branch 2 times, most recently from 9dd30ff to c9f5a78 Compare August 3, 2026 13:17
@lionel-
lionel- force-pushed the oak-nse/18-on-exit branch from c9f5a78 to 65630e7 Compare August 3, 2026 16:18
Base automatically changed from oak-nse/17-lazy-scan-refactor to main August 3, 2026 16:34
@lionel-
lionel- force-pushed the oak-nse/18-on-exit branch from 65630e7 to 9d1987b Compare August 3, 2026 16:35
@lionel-
lionel- merged commit 12c3454 into main Aug 3, 2026
16 of 17 checks passed
@lionel-
lionel- deleted the oak-nse/18-on-exit branch August 3, 2026 16:36
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant