hijack: hijack

Description Usage Arguments Value

Description

Inspired from: https://www.r-bloggers.com/hijacking-r-functions-changing-default-arguments/ Helps reset the default arguments for functions

Usage

1
hijack(fun, ...)

Arguments

fun

function. A function you wish to stub out default options on.

...

character. A named vector where the names correspond to function arguments and the value corresponds to the default value you wish to insert.

Value

Returns a copy of the input, but with the new default values specified by the ...


christiantillich/PipR documentation built on Feb. 27, 2020, 7:52 p.m.