I've been using getQuote
from the quantmod
package for a while. In the past few days, its begun failing with an HTTP error message:
library(quantmod)
getQuote("MSFT")
which returns "Error in open.connection(con, "rb") : HTTP error 401."
Has something stopped working?
This was an issue with the Yahoo Finance servers. It went away after a few days. See https://github.com/joshuaulrich/quantmod/issues/382 for details.