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

Automatic cleanup when unloading a package #101

Open
sebffischer opened this issue Feb 1, 2024 · 0 comments
Open

Automatic cleanup when unloading a package #101

sebffischer opened this issue Feb 1, 2024 · 0 comments

Comments

@sebffischer
Copy link
Member

As mlr3 populates dictionaries from packages like mlr3 or mlr3pipelines when loading extensions, those objects should be removed again when unloading the extension.
An idea brought forward by Lukas is to automate this, which I think is a good idea:
mlr-org/mlr3proba#301 (comment)

A simple solution would be to tag the dictionary entries with the package that added them.
Then, during the .onUnload function, we can remove all objects that were added by the package that is being unloaded.

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

No branches or pull requests

1 participant