R设置CRAN镜像||timeout时间

1.设置timeout

https://stackoverflow.com/questions/35282928/how-do-i-set-a-timeout-for-utilsdownload-file-in-r

getOption('timeout')
# [1] 60

options(timeout=100)

2.设置CRAN镜像

https://www.codenong.com/26086134/

getOption("repos")

options(repos=c(CRAN="@CRAN@",
                CRANextra="http://www.stats.ox.ac.uk/pub/RWin"))

 

posted @ 2020-11-09 18:34  lypbendlf  阅读(964)  评论(0编辑  收藏  举报