Search code examples
rr-rook-package

Rook error: Error in inherits(app, "RhttpdApp")


I have some apps which have been running into my office for weeks. In the last days, sometimes, I receive in the R console the following message:

Error in inherits(app, "RhttpdApp") : 
  no function to return from, jumping to top level

Do you know where this error is generated and any possible cause? thanks


Solution

  • You are not inside a function and you use return. For example running this reproduce your error:

    {
      return(0)
    }
    Error: no function to return from, jumping to top level
    

    I guees you have something like :

     if (!inherits(app,'RhttpdApp'))
       {.. return(...)}