Closed gracezhihuizhao closed 7 months ago
It may be useful to either change warning()
to error()
to abort before running into another error, or to throw warning()
and also set errfun
to default "dt4"
errfun <- "dt4"
. What do you guys think?
It may be useful to either change
warning()
toerror()
to abort before running into another error, or to throwwarning()
and also seterrfun
to default"dt4"
errfun <- "dt4"
. What do you guys think?
Ahhh, good catch. Yes, this should throw an error rather than a warning.
It threw an appropriate error when I didn't include the necessary parameter and when I did, I was able to process successfully. Thanks!
Approved and verified with 'tcpl' package team. Going to go ahead and merge these updates into 'dev'.
'errfun' is required in
tcplhit2_core
. Adding a check for if this parameter is provided inparams
/ output fromtcplfit2_core
. If the function should throw an error.