Closed tonytonov closed 8 years ago
I can confirm this behavior. EMA
does not currently support multi-column inputs, so it should throw an error or warning (it certainly shouldn't crash your R session).
Thanks for the quick reply. It's probably a good idea to throw a warning for matrices as well. Running e.g. EMA(matrix(1:100, 20))
silently operates on the first column and drops all others.
I'm been investigating whether TTR::EMA works well on multidimensional (multi-column) xts objects. Eventually I called EMA on ttrc (which is a data frame, but anyway, I was just wondering what happens), and I'm consistently getting random crashes with that call. Here's my
devtools::session_info()
:Now, this is more or less reproducible example. I've tried ~10 times (in R, RStudio, with devel/stable version of xts), and the crash may occur on the first or the second call, but it is most likely to happen on the third.
FWIW, I'm running Win 10, though
sessionInfo()
says it'sRunning under: Windows 8 x64 (build 9200)
.