改變了工作地點(diǎn)后光羞,安裝R包時(shí)出現(xiàn)報(bào)錯
install.packages("VennDiagram")
#Warning: unable to access index for repository https://mirrors.#edu.cn/CRAN/bin/macosx/contrib/4.1:
# cannot open URL 'https://mirrors.#edu.cn/CRAN/bin/macosx/contrib/4.1/PACKAGES'
其實(shí)改變鏡像就可以了,要選擇離自己近的鏡像
options(repos=structure(c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/")))
再進(jìn)行安裝就可以了
install.packages("VennDiagram")
#trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/macosx/contrib/4.1/VennDiagram_1.7.1.tgz'
#Content type 'application/octet-stream' length 247726 bytes (241 KB)
#==================================================
#downloaded 241 KB
#The downloaded binary packages are in #/var/folders/1h/v10vvcv51b969_64czytxlgw0000gn/T//Rtmp8fjMB8/downloaded_packages
其他安裝方法見總結(jié)一下手動安裝R包