由于R版本未更新(由于某些问题而无法更新),无法安装mvtnorm
试图从存档软件包安装mvtnorm,但无法安装。复制并粘贴到库中也不起作用
> probit12<-bic.glm(x, y, glm.family=binomial(link = "probit"))
Error in bic.glm(x, y, glm.family = binomial(link = "probit")) :
could not find function "bic.glm"
> library(BMA)
Loading required package: rrcov
Error: package or namespace load failed for ‘rrcov’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
object 'vI' not found
Error: package ‘rrcov’ could not be loaded
In addition: Warning messages:
1: package ‘BMA’ was built under R version 3.4.4
2: package ‘rrcov’ was built under R version 3.4.4
> library("BMA", lib.loc="~/R/win-library/3.4")
Loading required package: rrcov
Error: package or namespace load failed for ‘rrcov’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
object 'vI' not found
Error: package ‘rrcov’ could not be loaded
In addition: Warning messages:
1: package ‘BMA’ was built under R version 3.4.4
2: package ‘rrcov’ was built under R version 3.4.4
> install.packages("rrcov")
Installing package into ‘XXX’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependency ‘mvtnorm’ is not available
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/rrcov_1.4-7.zip'
Content type 'application/zip' length 1324116 bytes (1.3 MB)
downloaded 1.3 MB
package ‘rrcov’ successfully unpacked and MD5 sums checked
> install.packages("mvtnorm")
Installing package into ‘C:/Users/XX/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘mvtnorm’ is not available (for R version 3.4.3)
> install.packages("C:/Users/XXX/Downloads/mvtnorm_1.0-8.tar.gz", repos = NULL, type = "source")
Installing package into ‘C:/Users/XXX/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
* installing *source* package 'mvtnorm' ...
** package 'mvtnorm' successfully unpacked and MD5 sums checked
** libs
*** arch - i386
Warning: running command 'make -f "C:/PROGRA~1/R/R-3.4.3/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-3.4.3/share/make/winshlib.mk" SHLIB="mvtnorm.dll" SHLIB_LIBADD='$(FLIBS)' OBJECTS="C_FORTRAN_interface.o miwa.o mvt.o mvtnorm-init.o tvpack.o"' had status 127
ERROR: compilation failed for package 'mvtnorm'
* removing 'C:/Users/XXX/Documents/R/win-library/3.4/mvtnorm'
* restoring previous 'C:/Users/XXX/Documents/R/win-library/3.4/mvtnorm'
In R CMD INSTALL
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-3.4.3/bin/x64/R" CMD INSTALL -l "C:\Users\XXX\Documents\R\win-library\3.4" "C:/Users/XXX/Downloads/mvtnorm_1.0-8.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘C:/Users/XXX/Downloads/mvtnorm_1.0-8.tar.gz’ had non-zero exit status