devtools (version 0.8)

run_onattach: Run .onAttach if needed

Description

This is run after copying objects from the namespace to the package environment. In a normal install + load, the namespace would be locked between these stages, but we don't do that with load_all.

Usage

run_onattach(pkg = ".")

Arguments

pkg
package description, can be path or package name. See as.package for more information

Details

A variable called onAttach is created in the package's devtools metdata to indicate that it's attached.