狀況說明
安裝好R、RStudio
其實裝套件(quantmod)就裝不起來了,使用RGUI,裝套件就OK
下面就是指令與錯誤訊息,其實只有紅色是錯誤訊息,但在RStudio它們都是紅色,
害我以為都是錯誤訊息Orz...
> getSymbols("AAPL",src="yahoo")
As of 0.4-0, ‘getSymbols’ uses env=parent.frame() and
auto.assign=TRUE by default.
This behavior will be phased out in 0.5-0 when the call will
default to use auto.assign=FALSE. getOption("getSymbols.env") and
getOptions("getSymbols.auto.assign") are now checked for alternate defaults
This message is shown once per session and may be disabled by setting
options("getSymbols.warning4.0"=FALSE). See ?getSymbol for more details
Error in download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m, :
cannot open URL 'http://chart.yahoo.com/table.csv?s=AAPL&a=0&b=01&c=2007&d=1&e=21&f=2014&g=d&q=q&y=0&z=AAPL&x=.csv'
In addition: Warning message:
In download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m, :
InternetOpenUrl failed: ''
後來有朋友在RStudio Support裡面找到有人遇到一樣的問題,後來發現是網路設定問題導致,
控制台 => 網際網路選項 => 進階 => 還原預設值就OK了
有沒有每次玩東西,別人都順順的,我總是遇到一堆問題的八卦?
謎之聲:人品問題!?
參考
安裝好R、RStudio
其實裝套件(quantmod)就裝不起來了,使用RGUI,裝套件就OK
下面就是指令與錯誤訊息,其實只有紅色是錯誤訊息,但在RStudio它們都是紅色,
害我以為都是錯誤訊息Orz...
> getSymbols("AAPL",src="yahoo")
As of 0.4-0, ‘getSymbols’ uses env=parent.frame() and
auto.assign=TRUE by default.
This behavior will be phased out in 0.5-0 when the call will
default to use auto.assign=FALSE. getOption("getSymbols.env") and
getOptions("getSymbols.auto.assign") are now checked for alternate defaults
This message is shown once per session and may be disabled by setting
options("getSymbols.warning4.0"=FALSE). See ?getSymbol for more details
Error in download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m, :
cannot open URL 'http://chart.yahoo.com/table.csv?s=AAPL&a=0&b=01&c=2007&d=1&e=21&f=2014&g=d&q=q&y=0&z=AAPL&x=.csv'
In addition: Warning message:
In download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m, :
InternetOpenUrl failed: ''
後來有朋友在RStudio Support裡面找到有人遇到一樣的問題,後來發現是網路設定問題導致,
控制台 => 網際網路選項 => 進階 => 還原預設值就OK了
有沒有每次玩東西,別人都順順的,我總是遇到一堆問題的八卦?
謎之聲:
參考
留言
張貼留言
有什麼想法歡迎跟我們分享