Closed joshuaulrich closed 2 years ago
Hi Joshua, Thanks for the feedback. It is addressed in the most recent release from yesterday. Best, Onno @kboudt: I think you can close this issue then
Thanks @onnokleen! I looked at your commit and it looks like you added the check on line 243, but I don't see one on line 272 (the loglikBM()
function). FWIW, I don't think it's worth another CRAN release if you just pushed an update.
That loglikBM() should only be called after checking for FKF on line 188 so there isn't any need to check again. But after I searched in other files, I found the dependency popping up somewhere else -.- I'll add that to my todo list :)
That loglikBM() should only be called after checking for FKF on line 188 so there isn't any need to check again. But after I searched in other files, I found the dependency popping up somewhere else -.- I'll add that to my todo list :)
Forget the last part, I think that was only in an old version. I'll double check later just to be sure.
The FKF package is in 'Suggests', but used unconditionally in two places in
internalSpotVolAndDrift.R
(line 243 and line 272). That causes those function calls to fail if {FKF} is not installed (as was the case when I was running reverse dependency checks for quantmod).It's good practice to either import that function, or only use it if it's installed. Here's how you could do either one:
importFrom(FKF, fkf)
to the NAMESPACE file, orif (!requireNamespace("FKF", quietly = TRUE)) stop("please install the FKF package to use this function")
to the beginning of each function that usesFKF::fkf()
.