Skip to contents

remove_estimator() takes an estimator out of the registry, so build_network() no longer finds it by name. Built-ins can be removed too; they come back when the package is loaded again. A name that is not registered raises an error.

Usage

remove_estimator(name)

Arguments

name

The registered name of the estimator to remove, a single string.

Value

NULL, invisibly. The entry is removed from the registry as a side effect.

Note

The idiographic package exports a function with the same name. With both packages attached, the one attached last masks the other; write Nestimate::remove_estimator() to call this one.

Examples

register_estimator("test_est", function(data, ...) diag(3),
  description = "test", directed = FALSE)
remove_estimator("test_est")