here is my problem:
I am using a loop to run a function over a list of objects. Most of the objects work fine and produce the desired output. However, some others produce an error and when this happens, the loop stops running.
I am trying to find a way in which, every time the loop finds an object that gives an error, the loop ignores the problematic object and goes to the next object. So the loop can run until the end of the entire list, only producing the outputs of the object that worked fine.
I am implementing the loop like this:
for(i in n:m){
myfunction
}
thank you!