mlr-org / mlr3pipelines

Dataflow Programming for Machine Learning in R
https://mlr3pipelines.mlr-org.com/
GNU Lesser General Public License v3.0
132 stars 25 forks source link

strange error messages in online doc #751

Closed bblodfon closed 2 days ago

bblodfon commented 8 months ago

https://mlr3pipelines.mlr-org.com/reference/po.html !

mb706 commented 2 days ago

Seems to happen when NMF gets loaded, which loads BiocGenerics, which then defines another pos() method.

library("mlr3pipelines")
library("NMF")
pos("nop")
#> Error in (function (classes, fdef, mtable)  : 
#>   unable to find an inherited method for function ‘pos’ for signature ‘"character"’
unloadNamespace("Biobase")
unloadNamespace("BiocGenerics")
pos("nop")
#> $nop
#> PipeOp: <nop> (not trained)
#> values: <list()>
#> Input channels <name [train type, predict type]>:
#>   input [*,*]
#> Output channels <name [train type, predict type]>:
#>   output [*,*]