Displaying 3 results from an estimated 3 matches for "get_last_messag".
Did you mean:
get_last_message
2005 Sep 22
3
warning.expression?
Hi!
I'm trying to catch all warning-messages for special handling. It seems
options (warning.expression=myfunc ()) can be used for that. However, the
question is: How can I get at the actual warning in myfunc ()? Apparently in
S, you can use .C("get_last_message") for that. Is there a similar mechanism
in R?
Thanks for your help!
Thomas
2005 Sep 22
3
warning.expression?
Hi!
I'm trying to catch all warning-messages for special handling. It seems
options (warning.expression=myfunc ()) can be used for that. However, the
question is: How can I get at the actual warning in myfunc ()? Apparently in
S, you can use .C("get_last_message") for that. Is there a similar mechanism
in R?
Thanks for your help!
Thomas
1997 Oct 23
0
R-beta: why restart()
...swer to expr or NA (length 1),
# with printed error message. See splus_break for a version
# that returns error message as structure.
#
# DO NOT USE THE 'first' ARGUMENT
restart(first)
if(first) {
first <- F
expr
}
else {
# get_last_message doesn't always get the error message ...
print(paste("ERROR:", .C("get_last_message",
"")[[1]]))
NA
}
}
Thanks to someone whose name I have lost for posting this one to s-news.
Then you also get try...