[R] Quantmod cant download data
Christofer Bogaso
bogaso.christofer at gmail.com
Tue Apr 18 18:14:29 CEST 2017
Hi again,
I generally use Quantmod package to download stock data. However
recently I observed that it is unable to download the data although
Source file is available.
Below is Error I found when I use Quantmod :
> library(quantmod)
> getSymbols("^NSEI")
Error in download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m, :
cannot open URL
'http://ichart.finance.yahoo.com/table.csv?s=^NSEI&a=0&b=01&c=2007&d=3&e=18&f=2017&g=d&q=q&y=0&z=^NSEI&x=.csv'
However the Source file
"http://ichart.finance.yahoo.com/table.csv?s=^NSEI&a=0&b=01&c=2007&d=3&e=18&f=2017&g=d&q=q&y=0&z=^NSEI&x=.csv"
is available for manual download.
R version :
R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin13.4.0 (64-bit)
> sessionInfo()
R version 3.3.2 (2016-10-31)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: macOS Sierra 10.12.3
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] quantmod_0.4-7 TTR_0.23-1 xts_0.9-7 zoo_1.8-0
data.table_1.10.0
loaded via a namespace (and not attached):
[1] grid_3.3.2 lattice_0.20-35
Could you please help to resolve this issue.
Thanks for your time.
More information about the R-help
mailing list