如何不用選取 CRAN mirror site 下拉式選單而自動安裝套件

72 views
Skip to first unread message

WEPA ^_^

unread,
Dec 5, 2012, 8:29:48 AM12/5/12
to taiwa...@googlegroups.com
# R安裝套件時最常用的方法之一是選取 RGui 介面 :
# 程式套件 \ 安裝程式套件 \ 選取 mirror site \ 選取 套件名稱
# 以下介紹採用指令方式直接下載套件
 

# 方法1, 直接指定套件名稱, 左右加上雙引號, 此方法仍須選取 mirror site.
install.packages("e1017")

# 方法2, 直接指定套件名稱並且以 repos 參數指定 mirror site.
install.packages("e1071", repos=http://cran.cs.pu.edu.tw/)
# end

WEPA ^_^

unread,
Dec 23, 2012, 6:59:53 PM12/23/12
to taiwa...@googlegroups.com
上面網址應加上雙引號才正確:
install.packages("e1071", repos="http://cran.cs.pu.edu.tw/")
 
謝謝 Vince 提醒

WEPA ^_^於 2012年12月5日星期三UTC+8下午9時29分48秒寫道:
Reply all
Reply to author
Forward
0 new messages