[R] Quantmod cant download data
Joshua Ulrich
josh.m.ulrich at gmail.com
Tue Apr 18 18:16:16 CEST 2017
See https://github.com/joshuaulrich/quantmod/issues/149
On Tue, Apr 18, 2017 at 11:14 AM, Christofer Bogaso
<bogaso.christofer at gmail.com> wrote:
> 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.
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
--
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
R/Finance 2017 | www.rinfinance.com
More information about the R-help
mailing list