restart_reattach: Re-attaches package (restarting session)

View source: R/misc.R

restart_reattachR Documentation

Re-attaches package (restarting session)

Description

Re-attaches package (restarting session)

Usage

restart_reattach(pkg = NULL)

Arguments

pkg

An R package as a string (this was designed to quickly fix and test my own packages)

Value

By default, it restarts R and reattaches cptools. Otherwise, it detaches the named package if it is loaded and tries to attach it again.

Examples

# Another mistake in my own package
# (fixing it)
reattach_package(cptools)

AltfunsMA/cptools documentation built on Aug. 7, 2022, 5:44 p.m.