本文介绍了安装readxl软件包的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在Windows 64位计算机上安装新的readxl
软件包.我尝试了以下命令进行安装
I am trying to install the new readxl
package on a Windows 64 bit machine. I tried the following commands for the installation
install.packages("devtools")
library(devtools)
install.packages("Rcpp")
library(Rcpp)
install_github("hadley/readxl")
通过install_github
命令出现以下错误:
I get the following error with the install_github
command:
Installing github repo readxl/master from hadley
Downloading master.zip from https://github.com/hadley/readxl/archive/master.zip
Installing package from C:\Users\RAVISH~1.R\AppData\Local\Temp\RtmpUTzCUH/master.zip
Installing readxl
"C:/PROGRA~1/R/R-31~1.2/bin/x64/R" --vanilla CMD INSTALL \
"C:\Users\ravishankar.r\AppData\Local\Temp\RtmpUTzCUH\devtools585870ed251a\readxl-master" \
--library="C:/Users/ravishankar.r/Documents/R-dev" --install-tests
* installing *source* package 'readxl' ...
** libs
*** arch - i386
Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-31~1.2/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-31~1.2/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="readxl.dll" OBJECTS="RcppExports.o XlsWorkBook.o XlsWorkSheet.o XlsxWorkBook.o XlsxWorkSheet.o benchmarks.o endian.o ole.o xls.o xlstool.o zip.o"' had status 127
ERROR: compilation failed for package 'readxl'
* removing 'C:/Users/ravishankar.r/Documents/R-dev/readxl'
Error: Command failed (1)
有人可以帮助我解决这个错误吗?
Could someone help with me this error?
推荐答案
安装正确版本的Rtools可以解决此问题.对于R 3.1.2,我必须安装Rtools 3.1.
Installing the correct version of Rtools fixed the issue. For R 3.1.2, I had to install Rtools 3.1.
这篇关于安装readxl软件包的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!