-2

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

Michele
  • 8,563
  • 6
  • 45
  • 72

1 Answers1

1

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(...)}
agstudy
  • 119,832
  • 17
  • 199
  • 261
  • thanks a lots!! I'll investigate. Anyway, I'm not using that anywhere, that's why I asked for `where this error is generated`. I started when I did a data refresh with some `data.table` in place of `data.frame` and `IDate` in place of `Date`. – Michele Jul 10 '13 at 11:32
  • 1
    @Michele hum..I see. If you use `git` (or any other version control), maybe you can go back to previous versions of your code and trace the exact portion of code that produce the error. `options(error=browser)` can help also. – agstudy Jul 10 '13 at 11:35
  • yes, I'd probably need that. Thanks again – Michele Jul 10 '13 at 11:39