add_hook: Add a user hook to be executed before launching an R...

View source: R/hook.R

add_hookR Documentation

Add a user hook to be executed before launching an R subprocess

Description

This function allows users of callr to specify functions that get invoked whenever an R session is launched. The function can modify the environment variables and command line arguments.

Usage

add_hook(...)

Arguments

...

Named argument specifying a hook function to add, or NULL to delete the named hook.

Details

The prototype of the hook function is ⁠function (options)⁠, and it is expected to return the modified options.

Value

add_hook is called for its side-effects.


MangoTheCat/callr documentation built on Aug. 29, 2024, 2:32 a.m.