| modifyMethod {SummarizedBenchmark} | R Documentation |
This function takes a BenchDesign object and the name of a method
already defined in the object, and returns a modified BenchDesign
object with the specified changes made only to the named method.
At a minimum, a string name for the method, label, must be
specified in addition to the primary BenchDesign object.
modifyMethod(bd, label, params, .overwrite = FALSE)
bd |
BenchDesign object. |
label |
Character name of method to be modified. |
params |
Named quosure list created using |
.overwrite |
Logical whether to overwrite the complete existing list of
parameters to be passed to |
Modified BenchDesign object.
Patrick Kimes
## empty BenchDesign
bench <- BenchDesign()
## add method
bench <- addMethod(bench, label = "qv",
func = qvalue::qvalue,
post = function(x) { x$qvalue },
meta = list(note = "storey's q-value"),
params = rlang::quos(p = pval))
## modify method 'meta' property of 'qv' method
bench <- modifyMethod(bench, label = "qv",
params = rlang::quos(bd.meta =
list(note = "Storey's q-value")))
## verify that method has been updated
printMethod(bench, "qv")