在R 2.15.2上安装Ime4和ggplot2时出现的问题 [英] Problems installing Ime4 and ggplot2 on R 2.15.2
问题描述
我在安装lme4和ggplot软件包时遇到困难
我试图通过选择CRAN镜像(尝试过几次)来安装它们,然后选择软件包,并且还尝试了以下内容:
install.packages(lme4,repos =http:// r-forge .r-project.org)
和
install.packages(ggplot2,dependencies = TRUE)
但是我尝试调用这些包我收到了警告信息
package'lme4'不可用(对于R版本2.15.2)
或
package'ggplot2'is not available(for R version 2.15.2)
我可以找到安装这些软件包的问题的唯一答案,即将R升级到最新版本,但我使用的是我认为是最新版本的2.15.2。
有没有其他人有过这个问题?
任何帮助将不胜感激!!
谢谢。
Lian
我遇到了完全相同的问题。下面是我为它解决的问题:
为了方便起见,我在 Rprofile.site
文件中添加了一个默认的镜像文件:
local({r < - getOption(repos)
r [CRAN]< - http://cran.stat.sfu.ca/
options(repos = r)})
然后按此顺序安装软件包:
install.packages(Matrix)
安装.packages(nlme)
install.packages(minqa)
install.packages(RcppEigen)
install.packages(lme4,repos =http:// lme4.r-forge.r-project.org/repos)
install.packages(ggplot2,dependencies = TRUE)
希望它也适用于你。
I am having difficulty installing the lme4 and ggplot packages
I've tried to install them by selecting a CRAN mirror (have tried several) and then selecting the packages, and have also tried the following;
install.packages("lme4",repos="http://r-forge.r-project.org")
and
install.packages("ggplot2", dependencies=TRUE)
but however I try to call these packages I get the warning message
package ‘lme4’ is not available (for R version 2.15.2)
or
package ‘ggplot2’ is not available (for R version 2.15.2)
the only answers I can find for problems installing these packages suggest upgrading R to the latest version, but I am using 2.15.2 which I believe is the most recent available.
Has anyone else had this problem?
Any help would be greatly appreciated!!
thanks.
Lian
I was having the exact same problem. Here is what solved it for me:
For convenience I added a default cran mirror in my Rprofile.site
file:
local({r <- getOption("repos")
r["CRAN"] <- "http://cran.stat.sfu.ca/"
options(repos=r)})
Then installing packages in this order works:
install.packages("Matrix")
install.packages("nlme")
install.packages("minqa")
install.packages("RcppEigen")
install.packages("lme4",repos="http://lme4.r-forge.r-project.org/repos")
install.packages("ggplot2", dependencies=TRUE)
Hope it works for you as well.
这篇关于在R 2.15.2上安装Ime4和ggplot2时出现的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!