On Tue, Nov 16, 2010 at 10:58 AM, Aleksey Naumov wrote:
> Hi R experts,
>
> I am looking for a simple error handling approach, whereby I could stop
> function execution with a customized error message. For example:
>
> for (i in 1:10) {
> if (i == 5)
> # I'd like to be able to stop right he
Ottorino,
Thank you for your suggestion. I am not really looking to do any debugging,
but merely to issue an informative error message and stop execution of my
top-level function, called at an R terminal. See me response to David for
more details...
Thank you,
Aleksey
On Tue, Nov 16, 2010 at 11:
Il giorno mar, 16/11/2010 alle 10.58 -0500, Aleksey Naumov ha scritto:
> for (i in 1:10) {
>if (i == 5)
> # I'd like to be able to stop right here with an error message I
> have
> complete control over
> }
I'm far from expert, but perhaps this is near what you are looking for
for(i in
On Nov 16, 2010, at 10:58 AM, Aleksey Naumov wrote:
Hi R experts,
I am looking for a simple error handling approach, whereby I could
stop
function execution with a customized error message. For example:
for (i in 1:10) {
if (i == 5){
#Then insert:
cat("Informative error message") ; bre
4 matches
Mail list logo