I have been using the following command for a long time without problem:
spy <- read.csv("http://ichart.finance.yahoo.com/table.csv?s=SPY")
But in the past few days it started to throw the following error:
Warning messages:
1: In file(file, "rt") : "internal" method cannot handle https redirection to: 'https://ichart.finance.yahoo.com/table.csv?s=SPY'
2: In file(file, "rt") : "internal" method failed, so trying "libcurl"
I've updated my RStudio, R and all packages to the most up-to-date versions as of today. Could someone help me resolve this issue?
Thanks in advance!