Change of Error Handling
Shota Ochi
2018-07-15
I changed the way of error handling.
The functions of imagerExtra returned warning message and NULL value when we input invalid arguments.
Now the functions of imagerExtra returns error message when we input invalid arguments.
This is better because invalid arguments cause errors rather than warnings.
That’s why I changed the way of error handling.
You can confirm it by the code below.
library(devtools)
install_github("ShotaOchi/imagerExtra")
library(imagerExtra)
SPE(boats)
Error: im must be a grayscale image.