devtools (version 0.3)

load_code: Load R code.

Description

Load R code.

Usage

load_code(pkg, env=pkg_env(pkg))

Arguments

pkg
package description, can be path or package name. See as.package for more information
env
environment in which to load code. Defaults to devel:pkg which is attached just after the global environment. See pkg_env for more information

Details

Load all R code in the R directory. The first time the code is loaded, .onLoad will be run if it exists.