gpt4 book ai didi

r - 从 GitHub 或本地安装开发包时出现问题

转载 作者:行者123 更新时间:2023-12-04 10:36:30 25 4
gpt4 key购买 nike

我一直在与包作者联系,了解我在 HLMdiag 包中遇到的错误。他建议我安装开发版 [ https://github.com/aloy/HLMdiag] .所以,我正在尝试从 GitHub 和他发给我的本地版本安装开发版本。我的工作计算机和个人计算机都遇到了错误。我希望用户社区中对此类事情有更多了解的人可以帮助解决这个问题。

我最初的想法是我的工作机器上可能有一些安全协议(protocol)导致了问题,这就是我尝试在个人机器上安装的原因。我在不同的机器上收到不同的错误消息;但仍然无法安装。非常感谢任何帮助。

提前对帖子的长度表示抱歉。我想提供尽可能多的错误消息/日志。

机器 1 -- 个人

sessionInfo()
R version 3.1.2 (2014-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 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] devtools_1.6.1 tools_3.1.2

尝试 (A) - 直接来自 GitHub

devtools::install_github("aloy/HLMdiag")
Downloading github repo aloy/HLMdiag@master
Installing HLMdiag
"C:/PROGRA~1/R/R-31~1.2/bin/x64/R" --vanilla CMD INSTALL \
"C:\Users\crossfit_al1985\AppData\Local\Temp\Rtmp8o4p3s\devtools24b871ace19\aloy-HLMdiag-3f7977d" \
--library="C:/Users/crossfit_al1985/Documents/R/win-library/3.1" --install-tests

* installing *source* package 'HLMdiag' ...
** libs

*** arch - i386
C:\RBuildTools\3.1\gcc-4.6.3\bin\nm.exe: cooksd_obs.o: File format not recognized
C:\RBuildTools\3.1\gcc-4.6.3\bin\nm.exe: cooksd_subset.o: File format not recognized
C:\RBuildTools\3.1\gcc-4.6.3\bin\nm.exe: covratio.o: File format not recognized
C:\RBuildTools\3.1\gcc-4.6.3\bin\nm.exe: covtrace.o: File format not recognized
C:\RBuildTools\3.1\gcc-4.6.3\bin\nm.exe: linear_algebra_fnc.o: File format not recognized
C:\RBuildTools\3.1\gcc-4.6.3\bin\nm.exe: mdffits_subset.o: File format not recognized
g++ -m32 -shared -s -static-libgcc -o HLMdiag.dll tmp.def cooksd_obs.o cooksd_subset.o covratio.o covtrace.o linear_algebra_fnc.o mdffits_subset.o -LC:/PROGRA~1/R/R-31~1.2/bin/i386 -lRlapack -LC:/PROGRA~1/R/R-31~1.2/bin/i386 -lRblas -lgfortran -Ld:/RCompile/CRANpkg/extralibs64/local/lib/i386 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -LC:/PROGRA~1/R/R-31~1.2/bin/i386 -lR
cooksd_obs.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'HLMdiag'
* removing 'C:/Users/crossfit_al1985/Documents/R/win-library/3.1/HLMdiag'
* restoring previous 'C:/Users/crossfit_al1985/Documents/R/win-library/3.1/HLMdiag'
Error: Command failed (1)

尝试 (B) - 通过本地的 install.packages()

setwd(...)
install.packages("./HLMdiag_0.3.0.tar.gz", repos = NULL, type = "source")
Installing package into ‘C:/Users/crossfit_al1985/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
* installing *source* package 'HLMdiag' ...
** libs

*** arch - i386
cygwin warning:
MS-DOS style path detected: C:/PROGRA~1/R/R-31~1.2/etc/i386/Makeconf
Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-31~1.2/etc/i386/Makeconf
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
g++ -m32 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/Rcpp/include" -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c cooksd_obs.cpp -o cooksd_obs.o
g++ -m32 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/Rcpp/include" -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c cooksd_subset.cpp -o cooksd_subset.o
g++ -m32 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/Rcpp/include" -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c covratio.cpp -o covratio.o
g++ -m32 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/Rcpp/include" -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c covtrace.cpp -o covtrace.o
g++ -m32 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/Rcpp/include" -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c linear_algebra_fnc.cpp -o linear_algebra_fnc.o
g++ -m32 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/Rcpp/include" -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c mdffits_subset.cpp -o mdffits_subset.o
g++ -m32 -shared -s -static-libgcc -o HLMdiag.dll tmp.def cooksd_obs.o cooksd_subset.o covratio.o covtrace.o linear_algebra_fnc.o mdffits_subset.o -LC:/PROGRA~1/R/R-31~1.2/bin/i386 -lRlapack -LC:/PROGRA~1/R/R-31~1.2/bin/i386 -lRblas -lgfortran -Ld:/RCompile/CRANpkg/extralibs64/local/lib/i386 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -LC:/PROGRA~1/R/R-31~1.2/bin/i386 -lR
installing to C:/Users/crossfit_al1985/Documents/R/win-library/3.1/HLMdiag/libs/i386

*** arch - x64
cygwin warning:
MS-DOS style path detected: C:/PROGRA~1/R/R-31~1.2/etc/x64/Makeconf
Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-31~1.2/etc/x64/Makeconf
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
g++ -m64 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/Rcpp/include" -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c cooksd_obs.cpp -o cooksd_obs.o
g++ -m64 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/Rcpp/include" -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c cooksd_subset.cpp -o cooksd_subset.o
g++ -m64 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/Rcpp/include" -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c covratio.cpp -o covratio.o
g++ -m64 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/Rcpp/include" -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c covtrace.cpp -o covtrace.o
g++ -m64 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/Rcpp/include" -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c linear_algebra_fnc.cpp -o linear_algebra_fnc.o
g++ -m64 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/Rcpp/include" -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c mdffits_subset.cpp -o mdffits_subset.o
g++ -m64 -shared -s -static-libgcc -o HLMdiag.dll tmp.def cooksd_obs.o cooksd_subset.o covratio.o covtrace.o linear_algebra_fnc.o mdffits_subset.o -LC:/PROGRA~1/R/R-31~1.2/bin/x64 -lRlapack -LC:/PROGRA~1/R/R-31~1.2/bin/x64 -lRblas -lgfortran -Ld:/RCompile/CRANpkg/extralibs64/local/lib/x64 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -LC:/PROGRA~1/R/R-31~1.2/bin/x64 -lR
installing to C:/Users/crossfit_al1985/Documents/R/win-library/3.1/HLMdiag/libs/x64
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Creating a generic function from function 'adjust_lmList' in package 'HLMdiag'
Error in setMethod("lmList", signature(formula = "formula", data = "data.frame"), :
no existing definition for function 'lmList'
Error : unable to load R code in package 'HLMdiag'
ERROR: lazy loading failed for package 'HLMdiag'
* removing 'C:/Users/crossfit_al1985/Documents/R/win-library/3.1/HLMdiag'
* restoring previous 'C:/Users/crossfit_al1985/Documents/R/win-library/3.1/HLMdiag'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-31~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\crossfit_al1985\Documents\R\win-library\3.1" "./HLMdiag_0.3.0.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘./HLMdiag_0.3.0.tar.gz’ had non-zero exit status

尝试 (C) - 通过解压缩和 devtools::install()

setwd(...)
devtools::install("HLMdiag")
Installing HLMdiag
"C:/PROGRA~1/R/R-31~1.2/bin/x64/R" --vanilla CMD INSTALL \
"C:\Users\crossfit_al1985\Downloads\HLMdiag" \
--library="C:/Users/crossfit_al1985/Documents/R/win-library/3.1" --install-tests

* installing *source* package 'HLMdiag' ...
** libs

*** arch - i386
g++ -m32 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/Rcpp/include" -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c cooksd_obs.cpp -o cooksd_obs.o
g++ -m32 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/Rcpp/include" -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c cooksd_subset.cpp -o cooksd_subset.o
g++ -m32 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/Rcpp/include" -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c covratio.cpp -o covratio.o
g++ -m32 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/Rcpp/include" -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c covtrace.cpp -o covtrace.o
g++ -m32 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/Rcpp/include" -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c linear_algebra_fnc.cpp -o linear_algebra_fnc.o
g++ -m32 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/Rcpp/include" -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c mdffits_subset.cpp -o mdffits_subset.o
g++ -m32 -shared -s -static-libgcc -o HLMdiag.dll tmp.def cooksd_obs.o cooksd_subset.o covratio.o covtrace.o linear_algebra_fnc.o mdffits_subset.o -LC:/PROGRA~1/R/R-31~1.2/bin/i386 -lRlapack -LC:/PROGRA~1/R/R-31~1.2/bin/i386 -lRblas -lgfortran -Ld:/RCompile/CRANpkg/extralibs64/local/lib/i386 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -LC:/PROGRA~1/R/R-31~1.2/bin/i386 -lR
installing to C:/Users/crossfit_al1985/Documents/R/win-library/3.1/HLMdiag/libs/i386

*** arch - x64
g++ -m64 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/Rcpp/include" -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c cooksd_obs.cpp -o cooksd_obs.o
g++ -m64 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/Rcpp/include" -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c cooksd_subset.cpp -o cooksd_subset.o
g++ -m64 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/Rcpp/include" -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c covratio.cpp -o covratio.o
g++ -m64 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/Rcpp/include" -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c covtrace.cpp -o covtrace.o
g++ -m64 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/Rcpp/include" -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c linear_algebra_fnc.cpp -o linear_algebra_fnc.o
g++ -m64 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/Rcpp/include" -I"C:/Users/crossfit_al1985/Documents/R/win-library/3.1/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c mdffits_subset.cpp -o mdffits_subset.o
g++ -m64 -shared -s -static-libgcc -o HLMdiag.dll tmp.def cooksd_obs.o cooksd_subset.o covratio.o covtrace.o linear_algebra_fnc.o mdffits_subset.o -LC:/PROGRA~1/R/R-31~1.2/bin/x64 -lRlapack -LC:/PROGRA~1/R/R-31~1.2/bin/x64 -lRblas -lgfortran -Ld:/RCompile/CRANpkg/extralibs64/local/lib/x64 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -LC:/PROGRA~1/R/R-31~1.2/bin/x64 -lR
installing to C:/Users/crossfit_al1985/Documents/R/win-library/3.1/HLMdiag/libs/x64
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Creating a generic function from function 'adjust_lmList' in package 'HLMdiag'
Error in setMethod("lmList", signature(formula = "formula", data = "data.frame"), :
no existing definition for function 'lmList'
Error : unable to load R code in package 'HLMdiag'
ERROR: lazy loading failed for package 'HLMdiag'
* removing 'C:/Users/crossfit_al1985/Documents/R/win-library/3.1/HLMdiag'
* restoring previous 'C:/Users/crossfit_al1985/Documents/R/win-library/3.1/HLMdiag'
Error: Command failed (1)

机器 2 -- 工作

sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] devtools_1.5

loaded via a namespace (and not attached):
[1] digest_0.6.4 evaluate_0.5.5 formatR_0.10 htmltools_0.2.4 httr_0.6.1 knitr_1.6
[7] memoise_0.2.1 parallel_3.1.1 RCurl_1.95-4.1 rmarkdown_0.4.2 stringr_0.6.2 tools_3.1.1
[13] whisker_0.3-2

尝试(A)——直接来自github

devtools::install_github("aloy/HLMdiag")
Installing github repo HLMdiag/master from aloy
Downloading master.zip from https://github.com/aloy/HLMdiag/archive/master.zip
Installing package from C:\Users\alewit\AppData\Local\Temp\RtmpATVjSy/master.zip
Installing HLMdiag
"C:/PROGRA~1/R/R-31~1.1/bin/x64/R" --vanilla CMD INSTALL \
"C:\Users\alewit\AppData\Local\Temp\RtmpATVjSy\devtoolsc745bf04fbd\HLMdiag-master" \
--library="C:/Users/alewit/Documents/R/win-library/3.1" --install-tests

* installing *source* package 'HLMdiag' ...
** libs

*** arch - i386
Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-31~1.1/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-31~1.1/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="HLMdiag.dll" OBJECTS="cooksd_obs.o cooksd_subset.o covratio.o covtrace.o linear_algebra_fnc.o mdffits_subset.o"' had status 127
ERROR: compilation failed for package 'HLMdiag'
* removing 'C:/Users/alewit/Documents/R/win-library/3.1/HLMdiag'
* restoring previous 'C:/Users/alewit/Documents/R/win-library/3.1/HLMdiag'
Error: Command failed (1)

尝试 (B) -- 通过本地的 install.packages()

setwd(...)
install.packages("./HLMdiag_0.3.0.tar.gz", repos = NULL, type = "source")
Installing package into ‘C:/Users/alewit/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
* installing *source* package 'HLMdiag' ...
** libs

*** arch - i386
Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-31~1.1/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-31~1.1/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="HLMdiag.dll" OBJECTS="cooksd_obs.o cooksd_subset.o covratio.o covtrace.o linear_algebra_fnc.o mdffits_subset.o"' had status 127
ERROR: compilation failed for package 'HLMdiag'
* removing 'C:/Users/alewit/Documents/R/win-library/3.1/HLMdiag'
* restoring previous 'C:/Users/alewit/Documents/R/win-library/3.1/HLMdiag'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-31~1.1/bin/x64/R" CMD INSTALL -l "C:\Users\alewit\Documents\R\win-library\3.1" "C:/Users/alewit/Downloads/HLMdiag_0.3.0.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘C:/Users/alewit/Downloads/HLMdiag_0.3.0.tar.gz’ had non-zero exit status

尝试 (C) -- 通过 devtools::install()

setwd(...)
install("HLMdiag")
Installing HLMdiag
"C:/PROGRA~1/R/R-31~1.1/bin/x64/R" --vanilla CMD INSTALL "C:\Users\alewit\Downloads\HLMdiag" \
--library="C:/Users/alewit/Documents/R/win-library/3.1" --install-tests

* installing *source* package 'HLMdiag' ...
** libs

*** arch - i386
Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-31~1.1/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-31~1.1/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="HLMdiag.dll" OBJECTS="cooksd_obs.o cooksd_subset.o covratio.o covtrace.o linear_algebra_fnc.o mdffits_subset.o"' had status 127
ERROR: compilation failed for package 'HLMdiag'
* removing 'C:/Users/alewit/Documents/R/win-library/3.1/HLMdiag'
* restoring previous 'C:/Users/alewit/Documents/R/win-library/3.1/HLMdiag'
Error: Command failed (1)

最佳答案

src 目录中的 .o 文件把事情搞砸了。我提交了一个 pull request,希望 Adam 能尽快合并这些修复程序,你的问题应该就会消失。您可以使用

来测试这是否有效
install_github("Dasonk/HLMdiag")

直到拉取请求被接受。

编辑:Adam 很快就合并了。再次测试从 github 安装 install_github("aloy/HLMdiag") 它应该适合你。

关于r - 从 GitHub 或本地安装开发包时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28723882/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com