remove_hooks: Remove hooks.

Description Usage Arguments Examples

Description

This provides a way to remove previously set hook values.

Usage

1
remove_hooks(hooks)

Arguments

hooks

a named list of hooks - each hook can either be a function or a list of functions.

Examples

1
2
3
4
5
6
7
8
9
new1 <- list(before.plot.new = function() print("Plotted!"))
new2 <- list(before.plot.new = function() print("Plotted Again!"))
set_hooks(new1)
set_hooks(new2)
plot(1)
remove_hooks(new1)
plot(1)
remove_hooks(new2)
plot(1)

evaluate documentation built on May 28, 2019, 5:06 p.m.