Skip to content

hot swapping of box imports #345

Answered by tyner
tyner asked this question in Q&A
Oct 25, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Okay, here is one rough approach:

Y.env <- box::topenv(Y)
unlockBinding(as.name("bar"), Y.env)
Y.env$bar <- Y.env$baz

Note: topenv was newly added in version 1.1.3.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@klmr
Comment options

klmr Oct 25, 2023
Maintainer

Answer selected by tyner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants