2016-03-20 8 views

cevap

1

Bunu yapmak için try ve tryCatch'u kullanabilirsiniz. Örnek:

for(i in 1:3){ 
    try(stop(sprintf("error no %d", i))) 
} 

verir

Error in try(stop(sprintf("error no %d", i))) : error no 1 
Error in try(stop(sprintf("error no %d", i))) : error no 2 
Error in try(stop(sprintf("error no %d", i))) : error no 3 

Yani yürütme herhangi bir noktada durdurulmazsa

İlgili konular