Closed lgatto closed 3 years ago
Alternative suggestion:
> ps <- ProcessingStep(function(z) z + 4)
> show(ps)
Object of class "ProcessingStep"
Function: function(z) z + 4
> ps <- ProcessingStep(sum, list(a = sqrt))
> show(ps)
Object of class "ProcessingStep"
Function: function (..., na.rm = FALSE) .Primitive("sum")
Arguments:
o a = function (x) .Primitive("sqrt")
Sure, that's better.
From
?ProcessingStep
:This however works:
The
show
method fails whenFUN
is afunction
given that is can't be coerced to a character.But that's not all - the same issue happens when on of the arguments in
@ARGS
is itself a function, for example when callingfilterIntensity(x, my_function)
.Here's a suggestion:
That would produce
Not sure if this is very helpful though.