rmh@surfer.sbm.temple.edu wrote:
R : Copyright 2001, The R Development Core Team
Version 1.3.1 (2001-08-31)
tmp <- factor(1:3)
get("print.factor")(tmp)
print.a <- function(x,...) {
+ print("this is a")
+ NextMethod("print", x, quote = FALSE, right = TRUE, ...)
+ }
function(x,...) {
print("this is a")
NextMethod("print", x, quote = FALSE, right = TRUE, ...)
}
[1] "this is a"
[1] 1 2 3
Levels: 1 2 3
[1] "this is a"
Process R exited abnormally with code 5 at Tue Dec 11 16:18:17 2001
----
I am using the windows version rw1031
I also tried on rw1030. rw1030 gives a different code
Process R exited abnormally with code 255 at Tue Dec 11 17:31:06 2001
With an existing workspace the same happens with R-1.4.0 (unstable) on
WinNT4.
Also in R-1.4.0 (unstable) the last lines of your example, if started
without an existing workspace, results in:
[1] "this is a"
[1] 1 2 3
Levels: 1 2 3
[1] "this is a"
Error in get("print.a")(tmp) : function is not a closure
Error: attempt to apply non-function