I am calling R script (RandomForest) throught PHP, I copied model.rds and R script into web apps folder. Everything goes well but as soon as it reaches the line:
it stops with this error in my php page:
Error in UseMethod("predict") : no applicable method for 'predict' applied to an object of class "c('randomForest.formula', 'randomForest')" Calls: predict Execution halted
In my RStudio, the R script performed with no errors. Do you have an idea if it comes from apache server or rights on files which can create this error?