Skip to content
Prev 4951 / 15075 Next

strange behaviour when quitting

Why do people call things they do not understand 'strange', and use 
subject lines that fail to mention key facts (the use of active 
bindings)?

Are you saving the workspace?  That will access the active binding (twice, 
I think).  With

.Last <- function() rm(newq, envir=.GlobalEnv)

it should work.  I tried

invisible(makeActiveBinding("newq", function(...) cat("OK\n"), .GlobalEnv))
.Last <- function() rm(newq, envir=.GlobalEnv)

successfully.
On Mon, 21 Jul 2008, Carl Witthoft wrote:

            
I'd just wrap the call in invisible().
Did you not get an error?