在Windows上安装软件包错误:编译包“cldr”失败

url <- "http://cran.us.r-project.org/src/contrib/Archive/cldr/cldr_1.1.0.tar.gz" pkgFile<-"cldr_1.1.0.tar.gz" download.file(url = url, destfile = pkgFile) 

安慰

 >trying URL 'http://cran.us.r-project.org/src/contrib/Archive/cldr/cldr_1.1.0.tar.gz' Content type 'application/x-gzip' length 2296083 bytes (2.2 MB) ============================== downloaded 2.2 MB install.packages(pkgs = pkgFile, type = "source", repos = NULL) > Installing package into 'C: / Users / v - xuawan / Documents / R / win - library / 3.2' (as 'lib' is unspecified) * installing * source * package 'cldr' ... ** package 'cldr' successfully unpacked and MD5 sums checked ** libs > ** * arch - i386 Warning:running command 'make -f "Makevars" -f "C:/PROGRA~1/R/R-32~1.0/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-32~1.0/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="cldr.dll" ' had status 127 ERROR:compilation failed for package 'cldr' * removing 'C:/Users/v-xuawan/Documents/R/win-library/3.2/cldr' Warning in install.packages:running command '"C:/PROGRA~1/R/R-32~1.0/bin/x64/R" CMD INSTALL -l "C:\Users\v-xuawan\Documents\R\win-library\3.2" "cldr_1.1.0.tar.gz"' had status 1 Warning in install.packages:installation of package 'cldr_1.1.0.tar.gz' had non - zero exit status 

我试图在Windows上安装软件包cldr 。 我想知道如果你们中的任何人知道如何解决上面的错误消息

Solutions Collecting From Web of "在Windows上安装软件包错误:编译包“cldr”失败"

你安装了RTools吗? 选择正确的版本,这是属于你的R版本(看来你使用R 3.2)

从127的返回代码看来,您的路径上没有安装C ++编译器。 你有没有安装最新的Rtools for Windows? 它会给你你需要的C ++工具链。

在CRAN现有的其他软件包中可以找到相同的功能。 可以使用通常的install.packages("cld2")install.packages("cld3")来安装它们:

对于基于鸣叫的快速比较,请参阅其他答案: https : //stackoverflow.com/a/46663823/4124601