Should arguments be checked inside R in addition to checking in API? For example format of dates?
Pros:
- API not always return error, when in fact query doesn't make sense or is ambiguous (for example API silently adds zeros in front of a year - "11-11-11" is treated as "0011-11-11" not "2011-11-11")
- easier handling of error messages inside R
- sometimes it is possible to guess what user wants despite some typos
Cons:
- complete checking process has to be written
- overriding API's behaviour may not be desired
Should arguments be checked inside R in addition to checking in API? For example format of dates?
Pros:
Cons: