[R-pkg-devel] Error in methods::getMethod(name, eval(call$signature), where = env)

Francisco Palomares |p@|om@re@ @end|ng |rom correo@ugr@e@
Sat May 22 12:38:12 CEST 2021


Hi,
I have this problem:

Error in methods::getMethod(name, eval(call$signature), where = env) :
   no method found for function 'predict_inputs' and signature 
DecisionTreeClassifier
Calls: suppressPackageStartupMessages ... object_from_call -> 
parser_setMethod -> <Anonymous>


Code:
#' An S4 method to predict inputs.
#' @param object DecisionTree object
#' @param ... This parameter is included for compatibility reasons.
setGeneric("predict_inputs", function(object,...)
   standardGeneric("predict_inputs") )

#' @title Predict inputs Decision Tree
#' @description Function to predict one input in Decision Tree
#' @param object DecisionTree object
#' @param inputs inputs to be predicted
#' @param type type prediction, class or prob
#' @export
setMethod(f="predict_inputs",
           signature="DecisionTreeClassifier",
           definition=function(object,inputs,type = "class")
           {
................


What is the problem?
Thanks



More information about the R-package-devel mailing list