Skip to content

help! "browser()" does not get stopped...

5 messages · Michael, Uwe Ligges, Duncan Murdoch

#
On 06.12.2011 18:45, Michael wrote:
Which memory? You have to think about namespaces and environments in 
such a case, and then, we need to know what you are actually doing.
Err, no. So are you working on package and may NAMESPACES be involved or 
not? If not, my initial guess may be wrong. I think you have to provide 
more information what you are actually doing and how you did define all 
your functions that are involved.

best,
uwe Ligges
#
On 06/12/2011 12:45 PM, Michael wrote:
As Uwe said, that's not a very useful thing to do.   But if you know the 
name you're looking for, find() is useful.  For example,

Browse[1]> find("mean")
[1] "package:base"

You might also want find("mean", mode="function"), in case you've also 
got a non-function named "mean".

Duncan Murdoch
#
On 06/12/2011 1:17 PM, Michael wrote:
It finds what get() would find, so that starts with the current 
evaluation frame, and follows the chain back to the base environment.  
If you haven't used library() or require() to load a package, it won't 
be found.

 > I am looking for some command to tell me which functions are currently in
ls() will do that for the current evaluation frame.  See its args if you 
want to search back through the chain.
That's true, but not relevant.  If it hasn't been loaded, a stub is 
there, and find() will see the stub.
That's not true.  As soon as you assign a new value to the name, it will 
be replaced.  But you need to do the assignment in the right place in 
the chain.

Duncan Murdoch