Skip to content

Automatic cleanup when unloading a package #101

@sebffischer

Description

@sebffischer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions