detach_pkg_if_attached: Detach a package if attached (internal)

View source: R/run_covr_skip_runit_nstf.R

detach_pkg_if_attachedR Documentation

Detach a package if attached (internal)

Description

Safely detaches a package from the search path and optionally unloads its namespace.

Usage

detach_pkg_if_attached(pkg, unload_namespace = TRUE, quiet = TRUE)

test.assessr documentation built on April 30, 2026, 5:06 p.m.