yiqunhs 使用Rsudio0.97.551 R3.1.2下载包fCalendar后始终无法安装,试了国内所有的镜像(在北京高校使用教育网)。 提示以下报错信息 Warning in install.packages : InternetOpenUrl failed: 'A connection with the server could not be established' Warning in install.packages : unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.1 Warning in install.packages : package 慺Calendar?is not available (for R version 3.1.2) Warning in install.packages : InternetOpenUrl failed: 'A connection with the server could not be established' Warning in install.packages : InternetOpenUrl failed: 'A connection with the server could not be established' Warning in install.packages : unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.1 Warning in install.packages : package 慺Calendar?is not available (for R version 3.1.2) Warning messages: 1: In open.connection(con, "r") : InternetOpenUrl failed: 'A connection with the server could not be established' 2: package 慺Calendar?is not available (for R version 3.1.2) 当时的sessionInfo()和traceback()信息如下 > sessionInfo() R version 3.1.2 (2014-10-31) Platform: i386-w64-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_3.1.2 > traceback() 3: stop(gettextf("package %s was built before R 3.0.0: please re-install it", sQuote(pkgname)), call. = FALSE, domain = NA) 2: testRversion(pkgInfo, package, pkgpath) 1: library(fCalendar) 另外问个火星问题:为何用Rstudio安装包时总会提示连接不上镜像?不知道有无其他R友遇到同样问题。 盼复,非常感谢!
future0828@163.com :cry: :cry: 我现在连下载都无法下载 > install.packages("fcalendar", dependencies = FALSE) Warning in install.packages : package ‘fcalendar’ is not available (for R version 3.1.2) 请问你的问题解决了嘛,这个应该怎么下载以及安装? :cry: :cry:
yiqunhs [未知用户] 现在这个包似乎对于R3.0以上的版本已经不能使用了。我当时是对着一般较早的教材看时尝试学习下载的。 并非是为了要使用该包做计算,所以现在也不太纠结这个包能不能使用了。 或许使用从前的R版本可以使用该包。 不知道版本有无高手有其他建议
AnLau 我在Rstudio中加载程序包时,总是 Error in install.packages : cannot open the connection 但是先去R加载包,然后在Rstudo可以正常使用