Skip to content

Add attached_packages_anywhere() for lazy view - #1343

Merged
lionel- merged 1 commit into
mainfrom
oak-nse/5-eager-attach
Aug 3, 2026
Merged

Add attached_packages_anywhere() for lazy view#1343
lionel- merged 1 commit into
mainfrom
oak-nse/5-eager-attach

Conversation

@lionel-

@lionel- lionel- commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Progress towards #1338
Branched from #1342

Splits the file's attach output into two views:

  • attached_packages() now returns only packages attached at the file's own top level (eager context). A library() in a function body, a lazy NSE argument doesn't count, because reaching it depends on that lazy body running. This reflects the EOF view of attached packages, uncontradicted by lazy effects.

  • A new variant attached_packages_anywhere() returns every library()/require() regardless of context. used_packages() now uses this view.

@lionel-
lionel- force-pushed the oak-nse/5-eager-attach branch from 772463a to d43a67a Compare July 17, 2026 08:56
@lionel-
lionel- force-pushed the oak-nse/5-eager-attach branch from d43a67a to 4dd85c0 Compare July 17, 2026 11:26
@lionel-
lionel- force-pushed the oak-nse/5-eager-attach branch from 4dd85c0 to 3a2d3a6 Compare July 17, 2026 13:55
@lionel-
lionel- force-pushed the oak-nse/5-eager-attach branch from 3a2d3a6 to 070500e Compare July 22, 2026 12:46
@lionel-
lionel- force-pushed the oak-nse/5-eager-attach branch 2 times, most recently from 3c7a109 to e9f0241 Compare July 28, 2026 12:27
@lionel-
lionel- force-pushed the oak-nse/5-eager-attach branch 6 times, most recently from f0feb65 to dfaaa88 Compare August 3, 2026 13:16
@lionel-
lionel- force-pushed the oak-nse/5-eager-attach branch from dfaaa88 to 91fbfb3 Compare August 3, 2026 13:17
@lionel-
lionel- force-pushed the oak-nse/5-eager-attach branch from 91fbfb3 to 8727490 Compare August 3, 2026 16:18
Base automatically changed from oak-nse/4-assign to main August 3, 2026 16:21
@lionel-
lionel- force-pushed the oak-nse/5-eager-attach branch from 8727490 to 24816a6 Compare August 3, 2026 16:22
@lionel-
lionel- merged commit c73f589 into main Aug 3, 2026
17 checks passed
@lionel-
lionel- deleted the oak-nse/5-eager-attach branch August 3, 2026 16:23
@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