Hello, I am having a problem with the get.hist.quote command (tseries library) in the Windows version. This problem is not happening is the Linux version (Mandrake 8.2). Attached is the error message, for an example included in the help file. Also the R.Version() details is attached. Please, do you know if there is a workaround ? Thanks, Carlos. ++++++++++++++++++++++++ ERROR MESSAGE +++++++++++++++++++++> library(tseries) > x <- get.hist.quote(instrument = "ibm", quote = c("Cl", "Vol"))trying URL `http://chart.yahoo.com/table.csv?s=ibm&a=01&b=02&c=1991&d=06&e=05&f=2002&gd&q=q&y=0&z=ibm&x=.csv' Content type `application/octet-stream' length unknown opened URL downloaded 119Kb Error in if (dat[n] != start) cat(format(dat[n], "time series starts %Y-%m-%d\n")) : missing value where logical needed ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++ R VERSION ++++++++++++++++++++++++ R.Version() $platform [1] "i386-pc-mingw32" $arch [1] "i386" $os [1] "mingw32" $system [1] "i386, mingw32" $status [1] "Patched" $major [1] "1" $minor [1] "5.0" $year [1] "2002" $month [1] "06" $day [1] "05" $language [1] "R" ++++++++++++++++++++++++++++++++++++ _____ The information in this email is confidential and it may not be disclosed or used by anyone other than the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted is prohibited and may be unlawful. Minorplanet cannot accept responsibility for the accuracy or completeness of this email as it has been transmitted over a public network. If you suspect that the email may have been amended, please call the sender. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Prof Brian D Ripley
2002-Jun-06 14:47 UTC
[R] Problem with get.hist.quote (tseries library)....
On Thu, 6 Jun 2002, Carlos Ortega wrote:> I am having a problem with the get.hist.quote command (tseries library) in > the Windows version. > This problem is not happening is the Linux version (Mandrake 8.2). > > Attached is the error message, for an example included in the help file. > Also the R.Version() details is attached. > > Please, do you know if there is a workaround ?I've just tried it on R-1.5.0 under Windows, and it worked correctly (as it did when I compiled tseries and put it on CRAN). I guess the workaround is to use the machine you have which does work.> > Thanks, > Carlos. > > > ++++++++++++++++++++++++ ERROR MESSAGE +++++++++++++++++++++ > > library(tseries) > > x <- get.hist.quote(instrument = "ibm", quote = c("Cl", "Vol")) > trying URL > `http://chart.yahoo.com/table.csv?s=ibm&a=01&b=02&c=1991&d=06&e=05&f=2002&g> d&q=q&y=0&z=ibm&x=.csv' > Content type `application/octet-stream' length unknown > opened URL > downloaded 119Kb > > Error in if (dat[n] != start) cat(format(dat[n], "time series starts > %Y-%m-%d\n")) : > missing value where logical needed > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > +++++++++++++++++++++++ R VERSION ++++++++++++++++++++++++ > R.Version() > $platform > [1] "i386-pc-mingw32" > > $arch > [1] "i386" > > $os > [1] "mingw32" > > $system > [1] "i386, mingw32" > > $status > [1] "Patched" > > $major > [1] "1" > > $minor > [1] "5.0" > > $year > [1] "2002" > > $month > [1] "06" > > $day > [1] "05" > > $language > [1] "R" > ++++++++++++++++++++++++++++++++++++ > > > _____ > The information in this email is confidential and it may not be > disclosed or used by anyone other than the addressee. If you are not the > intended recipient, any disclosure, copying, distribution or any action taken or > omitted is prohibited and may be unlawful. > Minorplanet cannot accept responsibility for the accuracy or completeness of > this email as it has been transmitted over a public network. If you suspect > that the email may have been amended, please call the sender. > > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Patrick Hausmann
2002-Jun-06 19:22 UTC
[R] Problem with get.hist.quote (tseries library)....
At 16:36 - 6 Jun 2002, Carlos Ortega wrote:> I am having a problem with the get.hist.quote command (tseries library) in > the Windows version.I am having a similar problem: ++++++++++++++ ERROR MESSAGE +++++++++++++++++++> library(tseries) > x <- get.hist.quote(instrument = "ibm", quote = c("Cl", "Vol"))trying URL `http://chart.yahoo.com/table.csv?s=ibm&a=01&b=02&c=1991&d=0 6&e=05&f=2002&g=d&q=q&y=0&z=ibm&x=.csv' Content type `application/octet-stream' length unknown opened URL downloaded 119Kb Error in fromchar(x) : character string is not in a standard unambiguous format ++++++++++++++ ERROR MESSAGE +++++++++++++++++++> R.Version()[1] "i386-pc-mingw32" [1] "i386" [1] "mingw32" [1] "i386, mingw32" [1] "Patched" [1] "1" [1] "5.0" [1] "2002" [1] "05" [1] "16" [1] "R" If I download the file from yahoo and use 'read.csv()' it works:> x.local <- read.csv("c:/table.csv",header=T) > summary(x.local)Date Open 1-Apr-02: 1 Min. : 10.14 [...] Patrick> Attached is the error message, for an example included in the help file. > Also the R.Version() details is attached. > > Please, do you know if there is a workaround ? > > Thanks, > Carlos. > > > ++++++++++++++++++++++++ ERROR MESSAGE +++++++++++++++++++++ > > library(tseries) > > x <- get.hist.quote(instrument = "ibm", quote = c("Cl", "Vol")) > trying URL > `http://chart.yahoo.com/table.csv?s=ibm&a=01&b=02&c=1991&d=06&e=05&f=2002&g> d&q=q&y=0&z=ibm&x=.csv' > Content type `application/octet-stream' length unknown > opened URL > downloaded 119Kb > > Error in if (dat[n] != start) cat(format(dat[n], "time series starts > %Y-%m-%d\n")) : > missing value where logical needed > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Adrian Trapletti
2002-Jun-07 10:40 UTC
[R] Problem with get.hist.quote (tseries library)....
> Date: 07 Jun 2002 00:11:19 +0200 > From: Peter Dalgaard BSA <p.dalgaard at biostat.ku.dk> > Subject: Re: [R] Problem with get.hist.quote (tseries library).... > > "Patrick Hausmann" <patrick.hausmann at uni-bremen.de> writes: > > > At 21:48 - 6 Jun 2002, Peter Dalgaard BSA <p.dalgaard at biostat.ku.dk> wrote: > > > > > "Patrick Hausmann" <patrick.hausmann at uni-bremen.de> writes: > > > > > > > At 16:36 - 6 Jun 2002, Carlos Ortega wrote: > > > > > > > > > I am having a problem with the get.hist.quote command (tseries library) in > > > > > the Windows version. > > > > > > > > I am having a similar problem: > > > > > > > > ++++++++++++++ ERROR MESSAGE +++++++++++++++++++ > > > > > library(tseries) > > > > > x <- get.hist.quote(instrument = "ibm", quote = c("Cl", "Vol")) > > [...] > > > > > Not happening here. > > > > > > a) is your tseries package up to date? > > First lines from ChangeLog: > > 2002-04-26 Adrian Trapletti <a.trapletti at bluewin.ch> > > * DESCRIPTION (Version): New version is 0.9-0. > > Same here. (Doesn't it identify itself on load?)Yes, it does. And version 0.9-0 is the actual one. And for me under Linux it?s working fine. Thanks for your help, Peter Adrian -- Dr. Adrian Trapletti Phone: +41 (0)1 994 56 31 Wildsbergstrasse 31 Fax : +41 (0)1 994 56 33 CH-8610 Uster Email: a.trapletti at bluewin.ch Switzerland WWW : trapletti.homelinux.com -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._