I have written an R script which includes a loop that retrieves external (web) data. The format of the data are most of the time the same, however sometimes the format chang
You can use try:
try
# a has not been defined for(i in 1:3) { if(i==2) try(print(a),silent=TRUE) else print(i) }