3

I have been using quantmod::getFX on an almost daily basis recently, and for some reason today it makes my shiny app crashes.

I updated R, all my packages, tried the function on two different computers, but still get the same error.

To replicate the problem:

library(quantmod)
getFX("EUR/USD")

The error is:

Error in charToDate(x) : 
character string is not in a standard unambiguous format

Let me know if you need further information.

Charles
  • 150
  • 1
  • 1
  • 10
  • I thought this was due to user error, but running the examples gives the same error. Have you contacted the package maintainer? – IRTFM Apr 08 '17 at 01:27
  • I haven't contacted him, but I will let him know about this post and Patrick's answer below. The changes between timestamps/datetimes seem to be the root of the issue. – Charles Apr 08 '17 at 12:46
  • 1
    I am aware of this. It has already [been reported](https://github.com/joshuaulrich/quantmod/issues/144). – Joshua Ulrich Apr 08 '17 at 12:48
  • A [fix](https://github.com/joshuaulrich/quantmod/issues/144#issuecomment-292726265) has been published and it's solved the issue. – Charles Apr 09 '17 at 00:31
  • Thanks for this! I ran into the same error -- quantmod::getFX is a personal favorite for pulling historical FX data in R, so I'm glad there was a fix – Paul May 17 '17 at 23:05

0 Answers0