R getReturns > 无法打开HTTP状态为'404未找到'

3
使用R(我是R的新手)。我安装了stockPortfolio和quadProg包。
我试图运行returns <- getReturns(names(stocks), freq="week"),但是我得到了错误:
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") : cannot open: HTTP status was '404 Not Found'

我该如何进行故障排除和修复呢?
1个回答

1

Try with following command:

returns <- getReturns(stocks, freq="week") 

现在不应该出现错误。


1
404 似乎表示无法访问 Web 服务。 - Tim Biegeleisen

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接