hotfix: Hot-fix an existed function

Description Usage Arguments Examples

View source: R/hotfix.R

Description

Hot-fix an existed function

Usage

1
hotfix(fun, from, to)

Arguments

fun

original function to hot-fix

from

character string to replace from

to

character string to replace to

Examples

1
2
3
  hello <- function() cat("Hello, world!\n")
  hello <- hotfix(hello, "world", "magic")
  hello()  # output 'Hello, magic!'

yanlinlin82/magicR documentation built on May 4, 2019, 2:29 p.m.