register_namespace_callback: Registers a Callback on Namespace load/unLoad Events

View source: R/register_namespace_callback.R

register_namespace_callbackR Documentation

Registers a Callback on Namespace load/unLoad Events

Description

Register a function callback to be called after a namespace is loaded. Calls callback once if the namespace has already been loaded before and also adds an unload-hook that removes the load hook.

Usage

register_namespace_callback(pkgname, namespace, callback)

Arguments

pkgname

(character(1))
Name of the package which registers the callback.

namespace

(character(1))
Namespace to react on.

callback

(⁠function()⁠)
Function to call on namespace load.

Value

NULL.


mlr3misc documentation built on Sept. 20, 2023, 5:06 p.m.