suggested_callbacks: Callbacks To Handle Missing Suggests Packages

suggested_callbacksR Documentation

Callbacks To Handle Missing Suggests Packages

Description

These callbacks can be provided to suggested when declaring a suggested dependency. If a Suggested package namespace is accessed, the callback is used when handling the missing dependency. Generally, these are mitigating or communicative steps to handle the missing package in its entirety. By contrast, a package author may also define fallback behaviors for specific namespace objects when the package is otherwise missing.

Usage

suggested_callback_error(pkgname, ...)

suggested_callback_prompt(pkgname, ...)

Callbacks

suggested_callback_error

Throw an error if a suggested package is not installed.

suggested_callback_prompt

Prompt to install a suggested package and resume if installed


dgkf/devutils documentation built on Jan. 3, 2023, 7:26 a.m.