mlr-org / mlr3misc

Miscellaneous helper functions for mlr3
https://mlr3misc.mlr-org.com
GNU Lesser General Public License v3.0
11 stars 2 forks source link

feat: warn when installing packages with srcrefs #97

Closed sebffischer closed 7 months ago

sebffischer commented 8 months ago

When installing packages with source references and configuring objects with parameters that are functions, objects can be gigantic. Here we heuristically check whether mlr3misc is installed with srcrefs and warn if this is the case. Note that we don't simply check for the presence of srcrefs in the attributes to avoid evaluating the promise.

be-marc commented 8 months ago

Tested on my machine. Works.

sebffischer commented 7 months ago

We solve this differently by removing srcrefs from custom_check functions and parameter values.