Workarounds using NicheNet without attaching the package
Source:R/nichenet.R
nichenet_workarounds.Rd
NicheNet requires the availability of some lazy loaded external data
which are not available if the package is not loaded and attached. Also,
the BBmisc::convertToShortString
used for error reporting in
mlrMBO::evalTargetFun.OptState
is patched here to print longer
error messages. Maybe it's a better solution to attach nichenetr
before running the NicheNet pipeline. Alternatively you can try to call
this function in the beginning. Why we don't call this automatically is
just because we don't want to load datasets from another package without
the user knowing about it.