2
I created a function inside, however, if at some point an error occurs, it is not important to me and I want it to continue until the end, ignoring the error.
valor<-1
Erro<-function(valor){
valor<-valor+1
print(valor)
valor<-valor+1
print(valor)
na.fail(NA)
valor<-valor+1
print(valor)
valor<-valor+1
print(valor)
}
Erro(valor)
And what repercussions of that?
I don’t know if this is what you want:
tryCatch(na.fail(NA), error = function(e) print(e))
.– Rui Barradas