R学习笔记

安装 multcomp包时无法正确安装其依赖的mvtnorm包

再次尝试, install.packages(“mvtnorm”) 时安装过程如下:

There is a binary version<br>
  available but the source<br>
  version is later:<br>
        binary source<br>
mvtnorm 1.0-11 1.0-12<br>
        needs_compilation<br>
mvtnorm              TRUE
installing the source package ‘mvtnorm’
试开URL’https://cran.rstudio.com/src/contrib/mvtnorm_1.0-12.tar.gz'
 Content type 'application/x-gzip' length 165938 bytes (162 KB)
 downloaded 162 KB
installing source package 'mvtnorm' …
 ** 成功将'mvtnorm'程序包解包并MD5和检查
 ** using staged installation
 ** libs
*** arch - i386
 D:/Program Files/Rtools/mingw_32/bin/gcc  -I"D:/Program Files/R/R-3.6.0/include" -DNDEBUG          -O3 -Wall  -std=gnu99 -mtune=generic -c C_FORTRAN_interface.c -o C_FORTRAN_interface.o
 sh: D:/Program: No such file or directory
 make: *** [D:/Program Files/R/R-3.6.0/etc/i386/Makeconf:208: C_FORTRAN_interface.o] Error 127
 ERROR: compilation failed for package 'mvtnorm'
removing 'D:/Program Files/R/R-3.6.0/library/mvtnorm'
 Warning in install.packages :
 installation of package ‘mvtnorm’ had non-zero exit status
The downloaded source packages are in
 ‘C:\Users\user\AppData\Local\Temp\RtmpAbD9\downloaded_packages’

解决的方法是 改变下载地址 ,使用语句:

 install.packages("mvtnorm", repos = "http://R-Forge.R-project.org") 

发表评论

电子邮件地址不会被公开。 必填项已用*标注

1 + 2 =