run_pkg_hook: Run user and package hooks.
Description
Run user and package hooks.
Usage
run_pkg_hook(pkg, hook)run_user_hook(pkg, hook)
Arguments
pkg
package description, can be path or package name. See
as.package
for more information
hook
hook name: one of "load", "unload", "attach", or "detach"