quantmod
quantmod copied to clipboard
Remove S4 classes
The setOldClass("xts") and setOldClass("zoo") calls in quantmod cause issues if other packages need to define those classes as well. For example, see https://github.com/edzer/spacetime/issues/35, and a StackOverflow question I answered a couple years ago.
I mentioned these to @jaryan and he would prefer to remove all the S4 classes from quantmod.
I guess the following comment from the sources of the methods package also holds for "xts":
https://github.com/wch/r-source/blob/be05889aa5646e2c456486fd584be873ef3acd62/src/library/methods/R/BasicClasses.R#L531-L532
So maybe xts itself could setOldClass("xts") ?
Thanks for the suggestion @bastistician. That thought crossed my mind as well. Would you have time to try that and report back?
Has anyone fixed this yet? It is still bothering me.
@nguinasso I just tried to address it. It's going to take coordination with other package authors to get it released, so that may take several weeks.