GithubHelp home page GithubHelp logo

Namespace issue: Error in ranger(formula = reformulate(covariables, response = vv), data = data_imp, : could not find function "ranger" about outforest HOT 7 CLOSED

mayer79 avatar mayer79 commented on August 29, 2024
Namespace issue: Error in ranger(formula = reformulate(covariables, response = vv), data = data_imp, : could not find function "ranger"

from outforest.

Comments (7)

mayer79 avatar mayer79 commented on August 29, 2024

What version of the ranger package are you using?

from outforest.

mayer79 avatar mayer79 commented on August 29, 2024

Not enough info.

from outforest.

Deleetdk avatar Deleetdk commented on August 29, 2024

Error is unrelated to package versions, you just forgot the namespace on the foreign functions. It's best practice to include these always.

from outforest.

mayer79 avatar mayer79 commented on August 29, 2024

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...

from outforest.

mayer79 avatar mayer79 commented on August 29, 2024

I tried to fix it, thanks for reporting!

from outforest.

mayer79 avatar mayer79 commented on August 29, 2024

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.

from outforest.

Deleetdk avatar Deleetdk commented on August 29, 2024

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.

from outforest.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.