Closed lisavalexander closed 9 years ago
If no data is provided (ie. arguments to precfile
, tsminfile
and tsmaxfile
are all missing, climpact.loader()
fails as expected:
Error in climpact.loader(precname = "pracc_fl", tsminname = "tasmin", :
Must provide at least one filename for tsmin, tsmax and/or prec.
If no indices are specified (indices = c()
is supplied), climpact.loader() fails as expected (but the error might be tricky for end-users to interpret):
Error in if (indices[1] == "all") indices = as.character(indexlist[, 1]) :
argument is of length zero
Thanks Rensa, added a stop command and better error message for that.
On Sun, May 3, 2015 at 3:24 PM, Rensa notifications@github.com wrote:
If no data is provided (ie. arguments to precfile, tsminfile and tsmaxfile are all missing, climpact.loader() fails as expected:
Error in climpact.loader(precname = "pracc_fl", tsminname = "tasmin", : Must provide at least one filename for tsmin, tsmax and/or prec.
If no indices are specified (indices = c() is supplied), climpact.loader() fails as expected (but the error might be tricky for end-users to interpret):
Error in if (indices[1] == "all") indices = as.character(indexlist[, 1]) : argument is of length zero
— Reply to this email directly or view it on GitHub https://github.com/heroldn/climpact2/issues/9#issuecomment-98437966.
Check that software outputs the same data that it inputs if no operations are performed (tests apply function)