Learn R Programming

test.assessr (version 1.1.1)

detach_pkg_if_attached: 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)

Arguments