Skip to content
Prev 337010 / 398503 Next

Environmental problems.

Please see at end.
On 26/02/14 01:13, Duncan Murdoch wrote:
(a) The only relevant variable is "tdone"; I have grepped on "tdone" in 
the code.  There are no other assignments than the one enclosed in the 
if statement and the initialization.  I swear they are out to get me.

(b) Your "local" idea looks like it should solve the problem.  I tried
it in a toy example and it worked like a charm.  In the real example I 
get "Error: object 'tdone' not found".

(c) In respect of giving you the full Monty: I have attached a tar-ball 
and a zip archive --- hope that they get through the listserv 
machinations --- both containing all the necessary code to demonstrate 
the phenomenon.  Unpack, source all the *.R files, then source 
"demoScript".  You'll get a browser() call inside the "func" (which is 
actually called "scrF"). Type "tdone" and you'll get the error message. 
  Press "return" again, and it all falls over (due to the same error).

Somehow, due to the fact that "scrF" gets called by ode() which gets 
called by xsolve.disc(), the local environment gets hidden.  I swear 
that they are still out to get me.

cheers,

Rolf