Closed Deleetdk closed 3 years ago
What version of the ranger
package are you using?
Not enough info.
Error is unrelated to package versions, you just forgot the namespace on the foreign functions. It's best practice to include these always.
I see. One question: did you install the package from CRAN? There, "ranger" seems to be in the namespace file, but maybe I messed up that file on github...
I tried to fix it, thanks for reporting!
Actually the problem seems to be a wrong install instruction in the readme. Here is the right one using a subdir:
library(devtools)
install_github("mayer79/outForest", subdir = "release/outforest")
Thanks again for reporting.
You just need to use e.g. ranger::ranger()
in your source code. Sometimes it works without, and sometimes it doesn't. Best just to use it always when writing packages.
atmos_cph_num
is just some arbitrary dataset. The error here is that https://github.com/mayer79/outForest/blob/master/R/outForest.R#L139 is missing namespace.