Fix: updated default arguments for `writeTo` and `fileName` in `scriptMIM()` and `scriptObsAPIM()`. Feat: updated documentation and error message in `outputModel()` #114
Updated scriptMIM() and scriptObsAPIM() to have writeTo = NULL and fileName = NULL as defaults (just like the other scripters).
outputModel()
Since writeTo = NULL is the default and will throw an error, I included a small note mentioning that in the documentation – i.e., “The default is NULL (which will throw an error) …”
I also included a new error message that is more specific to those situations: so, if writeTo = NULL, instead of the error message saying “The writeTo argument must be a character string….”, the error message will say “Must specify a directory to which the file should be saved….”
Related to Issue #111 and PR #113.
Scritpers
scriptMIM()
andscriptObsAPIM()
to havewriteTo = NULL
andfileName = NULL
as defaults (just like the other scripters).outputModel()
writeTo = NULL
is the default and will throw an error, I included a small note mentioning that in the documentation – i.e., “The default is NULL (which will throw an error) …”writeTo = NULL
, instead of the error message saying “ThewriteTo
argument must be a character string….”, the error message will say “Must specify a directory to which the file should be saved….”