snctrl_names | R Documentation |
snctrl
updating.Helper functions used by packages to facilitate snctrl
updating.
snctrl_names()
update_snctrl(myname, arglists = NULL, callback = NULL)
collate_controls(x = NULL, ...)
UPDATE_MY_SCTRL_EXPR
COLLATE_ALL_MY_CONTROLS_EXPR
myname |
Name of the package defining the arguments. |
arglists |
A named list of argument name-default pairs. If the
list is not named, it is first passed through
|
callback |
A function with no arguments that updates the
packages own copy of |
x |
Either a function, a list of functions, or an
environment. If |
... |
Additional functions or lists of functions. |
UPDATE_MY_SCTRL_EXPR
is a quoted expression meant to be passed directly to eval()
.
COLLATE_ALL_MY_CONTROLS_EXPR
is a quoted expression meant to be passed directly to eval()
.
update_snctrl()
has no return value and is used for its side-effects.
collate_controls()
returns the combined list of name-default pairs of each function.
snctrl_names()
: Typeset the currently defined list of
argument names by package and control function.
update_snctrl()
: Typically called from .onLoad()
, Update the
argument list of snctrl()
to include additional argument names
associated with the package, and set a callback for the package
to update its own copy.
collate_controls()
: Obtain and concatenate the argument lists of
specified functions or all functions starting with dQuote(control.
) in
the environment.
UPDATE_MY_SCTRL_EXPR
: A stored expression that, if evaluated, will
create a callback function update_my_snctrl()
that will update
the client package's copy of snctrl()
.
COLLATE_ALL_MY_CONTROLS_EXPR
: A stored expression that, if evaluated on
loading, will add arguments of the package's control.*()
functions to snctrl()
and set the callback.
## Not run:
# In the client package (outside any function):
eval(UPDATE_MY_SCTRL_EXPR)
## End(Not run)
## Not run:
# In the client package:
.onLoad <- function(libame, pkgname){
# ... other code ...
eval(statnet.common::COLLATE_ALL_MY_CONTROLS_EXPR)
# ... other code ...
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.