shim: Shims libraries

Description Usage Arguments Value Examples

Description

Shims libraries

Usage

1
2
shim(..., library.paths = .libPaths(), callback = function() binder,
  binder = .binder)

Arguments

...

zero or more library names to shim binding each exported variable to the binder; if a library name is specified in a named list format (for example shim(s4='stats4',callback=function(s4.AIC))) all exported variable names from that library will be prepended with that name and a dot (as in the example); if a library cannot be loaded, no bindings are created for that library and no errors are thrown (but there is an error to console as reported by requireNamespace)

library.paths

to use for loading namespace

callback

injected for convenience using the binder specified after shim is completed, if omitted the call returns the binder

binder

for this shim

Value

result of the callback if specified, binder otherwise

Examples

1
shim ('injectoR', callback = function (inject) inject, binder = binder ())

injectoR documentation built on May 2, 2019, 1:42 p.m.