SCM

[#1715] yahooKeystats does not download properly

View Trackers | Bugs | Download .csv | Monitor

Date:
2011-12-19 19:41
Priority:
3
State:
Open
Submitted by:
Robert van den Berg (sallin)
Assigned to:
Nobody (None)
Hardware:
None
Product:
None
Operating System:
Linux
Component:
None
Version:
None
Severity:
normal
Resolution:
None
 
URL:
Summary:
yahooKeystats does not download properly

Detailed description
r-cran-fimport (2110.79-3) on Debian wheezy

yahooKeystats doesn't download the data and returns an error.
data.Key <- yahooKeystats('IBM')
trying URL 'http://finance.yahoo.com/q/ks?s=IBM'
Content type 'text/html; charset=utf-8' length unknown
opened URL
.......... .......... .......... ......
downloaded 36 Kb

Read 108 items
Error in matrix(unlist(strsplit(x, "@")), byrow = TRUE, ncol = 2) :
'data' must be of a vector type

data.Key contains the following string:
> data.Key
[1] "No Internet Access"

Other commands do work:
data.Series <- yahooSeries('IBM', nDaysBack=(366*5))
trying URL 'http://chart.yahoo.com/table.csv?s=IBM&a=&b=&c=&d=11&e=19&f=2011&g=d&x=.csv'
Content type 'text/csv' length unknown
opened URL
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... .......... ..........
downloaded 630 Kb

> str(data.Series)
Time Series:
Name: object
Data Matrix:
Dimension: 1260 6
Column Names: IBM.Open IBM.High IBM.Low IBM.Close IBM.Volume IBM.Adj.Close
Row Names: 2011-12-16 ... 2006-12-18
Positions:
Start: 2006-12-18
End: 2011-12-16
With:
Format: %Y-%m-%d
FinCenter: GMT
Units: IBM.Open IBM.High IBM.Low IBM.Close IBM.Volume IBM.Adj.Close
Title: Time Series Object
Documentation: Mon Dec 19 20:39:57 2011


Followup

No Followups Have Been Posted

Attached Files:

Changes:

No Changes Have Been Made to This Item

Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge