« Return to Thread: economagic Import - error message

economagic Import - error message

by stephen` :: Rate this Message:

Reply to Author | View in Thread

Hi
 
I am getting an error message when I try to run a download using
economagicImport:
 
> # save a download to a data file
> file = 'fedfunds.csv'
> source = 'http://www.economagic.com/em-cgi/data.exe/'
> query = 'fedst1/fedfunds+2'
> # download
> economagicImport(file, source, query)
Error in download.file(url = url, destfile = file, method = method) :
        unsupported URL scheme
[1] "No Internet Access"
 
I don't get that when I use yahoo:
 
>    query = "s=^AXJO&a=1&b=1&c=1997&d=12&q=31&f=2007&z=^AXJO&x=.csv"
>    data = yahooImport(query)  
trying URL
'http://chart.yahoo.com/table.csv?s=^AXJO&a=1&b=1&c=1997&d=12&q=31&f=200
7&z=^AXJO&x=.csv'
Content type 'text/csv' length unknown
opened URL
downloaded 88Kb
 
Can anyone suggest what I am doing wrong - please ;-(
 
Stephen Choularton
0413 545 182
02 9999 2226
 
 
 

        [[alternative HTML version deleted]]

_______________________________________________
R-SIG-Finance@... mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only.
-- If you want to post, subscribe first.

 « Return to Thread: economagic Import - error message