java readxl,安装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")

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?

解决方案

Installing the correct version of Rtools fixed the issue. For R 3.1.2, I had to install Rtools 3.1.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值