[Rd] get.hist.quote does not work (PR#1116)

arto.luoma@uta.fi arto.luoma@uta.fi
Thu, 4 Oct 2001 14:45:30 +0200 (MET DST)


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
 

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._