[R] tseries (get.hist.quote)
ripley at stats.ox.ac.uk
Thu Jul 18 17:18:05 CEST 2002
This has been in the R-bugs database, twice. The problem is that you are
(I presume) using an non-English locale to read English dates. To allow
this, get.hist.quote attempts to change to the `C' locale. The way
strptime() was implemented on Windows did not allow for locale-changing
during a session, but that was changed for 1.5.1, and certainly works when
my machine is put in a German locale (which it did not do under 1.5.0).
Try setting your machine to an English locale. If anyone who is in a
non-English locale can reproduce this with 1.5.1 and find a fix, please
submit a patch.
On Thu, 18 Jul 2002, Christian Schulz wrote:
> i really positive surprised when i found the "get.hist.quote" but
> didn't now
> why i get with the examples from Online-Help errorMessages.
> Perhaps their is a problem with POSIX and my OS WIN2000/R1.5.1 ?
(There definitely is. Windows thinks I am on GMT Daylight Time, for
> Thanks for advance & regards,Christian
> $ ibm <- get.hist.quote(instrument = "ibm", start = "1998-01-01")
> trying URL `
> Content type `application/octet-stream' length unknown
> opened URL
> downloaded 48Kb
> time series starts 1998-01-02
> Error in fromchar(x) : character string is not in a standard unambiguous
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help