Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

r-rudra/patch

Open more actions menu

Repository files navigation

patch

Modify or Patch any Function Programmatically

Patch functions programmatically in a robust way so that the patch will work even if there is a change (up to an extent) in the target function. The changes are additive. The changes can be reverted back to the original (within a single session of the package).

Installation

You can install the development version from GitHub with:

# You need {remotes} for that (I think you already have that)
# install.packages("remotes")
remotes::install_github("r-rudra/patch")

Example

Just try out following:

library(patch)
help("patch_function")
# possibly you'll be interested in 
# source(system.file("embedded","usecases.R",package = "patch"))
# but read warnings before it :-)

About

{patch} is #rstats package for patching functions on the fly

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.