[Rd] get.hist.quote does not work (PR#1116)
Arto Luoma
al18853@uta.fi
Fri, 5 Oct 2001 16:04:40 +0300 (EET DST)
On Thu, 4 Oct 2001, Kurt Hornik wrote:
> >>>>> arto luoma writes:
>
> > Full_Name: Arto Luoma
> > Version: 1.3.1
> > OS: Windows 98
> > Submission from: (NULL) (153.1.53.119)
>
> > Hi!
>
> > The function get.hist.quote in the package tseries (Version 0.7-6)
> > does not work in my computer. I found that it uses the function
> > strptime which did not "understand" English month names in my Finnish
> > locale (see bug report 811). I changed the regional settings to be
> > English (UK) and strptime started to work as I liked. However,
> > get.hist.quote does not work yet, since the function julian does not
> > work. Is this problem only in my computer? The previous version of
> > get.hist.quote (tseries 0.7-0) did work.
>
> > Sys.time and julian produce
>
> >> Sys.time()
> > [1] "2001-10-04 15:33:14 GTB Daylight Time"
> >> julian(Sys.time())
> > Error in fromchar(x) : character string is not in a standard unambiguous format
> >>
>
> > get.hist.quote produces
>
> > x <- get.hist.quote(instrument = "^spc", start = "1998-01-01",
> > + quote = "Close")
> > trying URL `http://chart.yahoo.com/table.csv?s=^spc&a=01&b=01&c=1998&d=10&e=03&f=2001&g=d&q=q&y=0&z=^spc&x=.csv'
> > Content type `application/octet-stream' length unknown
> > opened URL
> > downloaded 38Kb
>
> > time series starts 1998-01-02
> > Error in fromchar(x) : character string is not in a standard unambiguous format
>
> I am confused by the subject: above you indicate that get.hist.quote
> does not work because julian does not work.
>
> What precisely are your locale settings?
>
> -k
>
I think this is what you are interested in:
Sys.getlocale()
[1] "LC_COLLATE=English_United Kingdom.1252;LC_CTYPE=English_United
Kingdom.1252;LC_MONETARY=C;LC_NUMERIC=C;LC_TIME=English_United
Kingdom.1252"
Arto L.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._