Closed giraljo closed 3 years ago
I started the process to deprecate quantmod::as.zoo.data.frame()
in favor of zoo::as.zoo.data.frame()
in July of 2019. I couldn't remove it immediately because the two methods have different behavior that may break existing code. I will remove it after July of 2021.
I'm closing because this has already been addressed.
R$ library(quantmod)
R$ data(sample_matrix)
R$ d <- as.data.frame(sample_matrix)
R$ z <- as.zoo(d)
NOTE: quantmod::as.zoo.data.frame() is deprecated
Use as.zoo(x, order.by = as.Date(rownames(x))) instead.
This note is printed once. To see it for every call, set
options(quantmod.deprecate.as.zoo.data.frame = TRUE)
Got it Thank you
Apologies for commenting on a long-closed issue, but I was wondering if there was any progress on the removal of quantmod::as.zoo.data.frame()
? I appreciate it's likely not a priority, but the 'S3 method overwriting' message is still appearing both here and in downstream packages.
@stephenashton-dhsc no worries! I forgot about this, so appreciate the nudge. I'll convert this to a warning/error now and create an issue to unregister the method in a future release.
Description
Warning message launched when R Studio starts:
Registered S3 method overwritten by 'quantmod': method from as.zoo.data.frame zoo
Expected behavior
N/A
Minimal, reproducible example
Session Info