This is pretty much the same this as #217 but for the ITN cube part.
Running the scripts should be backwards compatible except for 04_predict_rasters.r, where the year parameter is a named argument instead of a positional one.
It uses the tryCatchLog package for a slightly improved trace when an error is thrown. Occasionally line numbers are included (not clear to me exactly when). It's a real pain when a long running script errors somewhere and R doesn't give much information as to where, this should help a bit with finding out where.
If you want to look at the diff in a more manageable fashion I would suggest skipping the commits that start with "move" (code is purely moved around/put into functions there) and just look at the ones that start with "add".
This is pretty much the same this as #217 but for the ITN cube part.
Running the scripts should be backwards compatible except for
04_predict_rasters.r
, where the year parameter is a named argument instead of a positional one.Another addition in each script is this code:
It uses the tryCatchLog package for a slightly improved trace when an error is thrown. Occasionally line numbers are included (not clear to me exactly when). It's a real pain when a long running script errors somewhere and R doesn't give much information as to where, this should help a bit with finding out where.
If you want to look at the diff in a more manageable fashion I would suggest skipping the commits that start with "move" (code is purely moved around/put into functions there) and just look at the ones that start with "add".