0

我在我的 Rstudio 上安装包 'swirl' 时遇到问题。我在中国尝试了几个 cran,但每次都无法连接到服务器。有谁知道任何可能的原因?*ps:因为 stackoverflow 不允许我发布多个 URL 链接,所以我从 'http' 中截断了一个 'h'

 install.packages("swirl")

install.packages 中的警告:

网址' http://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/PACKAGES.rds':状态为'无法连接到服务器' install.packages 中的警告:URL 'ttp://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/PACKAGES.gz':状态为'Couldn' t connect to server' install.packages 中的警告:URL 'ttp://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/PACKAGES':状态为'Couldn't connect to server' 安装中的警告。包:无法访问存储库的索引 ttp://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib:无法打开 URL 'ttp://mirrors.tuna.tsinghua.edu.cn/CRAN/src/ install.packages 中的 contrib/PACKAGES 警告:URL 'ttp://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/PACKAGES.rds':状态为 'Couldn't connect to server' 安装警告.packages : URL 'ttp://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/PACKAGES.gz':状态为“无法连接到服务器” install.packages 中的警告:URL 'ttp://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib /PACKAGES':状态为'无法连接到服务器' install.packages 中的警告:无法访问存储库的索引 ttp://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib:无法打开 URL ' ttp://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/PACKAGES' install.packages 中的警告:package 'swirl' is not available (for R version 3.4.0) install.packages 中的警告:URL 'ttp://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/macosx/el-capitan/contrib/3.4/PACKAGES.rds':状态为'无法连接到服务器'install.packages 中的警告:URL 'ttp://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/PACKAGES':状态为'无法连接到服务器' install.packages 中的警告:无法访问存储库索引 ttp://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib:无法打开 URL 'ttp://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/PACKAGES' 警告在 install.packages 中:包 'swirl' 不可用(对于 R 版本 3.4.0) install.packages 中的警告: URL 'ttp://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/macosx/el- capitan/contrib/3.4/PACKAGES.rds':状态为'无法连接到服务器'install.packages 中的警告:URL 'ttp://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/PACKAGES':状态为'无法连接到服务器' install.packages 中的警告:无法访问存储库索引 ttp://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib:无法打开 URL 'ttp://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/PACKAGES' 警告在 install.packages 中:包 'swirl' 不可用(对于 R 版本 3.4.0) install.packages 中的警告: URL 'ttp://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/macosx/el- capitan/contrib/3.4/PACKAGES.rds':状态为'无法连接到服务器'无法访问存储库的索引 ttp://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib:无法打开 URL 'ttp://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/ install.packages 中的 PACKAGES 警告:package 'swirl' 不可用(对于 R 版本 3.4.0) install.packages 中的警告:URL 'ttp://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/macosx /el-capitan/contrib/3.4/PACKAGES.rds':状态为'无法连接到服务器'无法访问存储库的索引 ttp://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib:无法打开 URL 'ttp://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/ install.packages 中的 PACKAGES 警告:package 'swirl' 不可用(对于 R 版本 3.4.0) install.packages 中的警告:URL 'ttp://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/macosx /el-capitan/contrib/3.4/PACKAGES.rds':状态为'无法连接到服务器'cn/CRAN/bin/macosx/el-capitan/contrib/3.4/PACKAGES.rds':状态为'无法连接到服务器'cn/CRAN/bin/macosx/el-capitan/contrib/3.4/PACKAGES.rds':状态为'无法连接到服务器'

4

1 回答 1

0

尝试:

install.packages("swirl", repos="http://cran.rstudio.com/", dependencies=TRUE)
于 2019-03-08T17:46:49.820 回答