onload: The onLoad hook

View source: R/macro.R

onloadR Documentation

The onLoad hook

Description

It looks in the package code for functions and recursively expands all macros. After expansion it compiles the function to bytecode using the compiler package.

Usage

onload(envir = topenv(parent.frame()))

Arguments

envir

an environment in which the macro expansion is being done.


dirkschumacher/defmacro documentation built on Oct. 22, 2022, 1:02 p.m.