[英]Trouble with installing r2excel package in R
I am trying to install r2excel package in R via install_github but I get this error我正在尝试通过 install_github 在 R 中安装 r2excel 包,但出现此错误
> install_github("kassambara/r2excel")
several lines appearing in the console and I get控制台中出现几行,我得到
* installing *source* package 'r2excel' ...
** R
** preparing package for lazy loading
Warning: package 'xlsx' was built under R version 3.4.4
** help
*** installing help indices
converting help for package 'r2excel'
finding HTML links ... done
getOS html
r2excel-package html
xlsx.addHeader html
xlsx.addHyperlink html
xlsx.addLineBreak html
xlsx.addParagraph html
xlsx.addPlot html
xlsx.addTable html
xlsx.openFile html
xlsx.readFile html
xlsx.writeFile html
xlsx.writeMultipleData html
** building package indices
** testing if installed package can be loaded
*** arch - i386
Warning: package 'xlsx' was built under R version 3.4.4
Error: package or namespace load failed for 'xlsx':
.onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: No CurrentVersion entry in Software/JavaSoft registry! Try re- installing Java and make sure R and Java have matching architectures.
Error : package 'xlsx' could not be loaded
Error: loading failed
Execution halted
*** arch - x64
Warning: package 'xlsx' was built under R version 3.4.4
ERROR: loading failed for 'i386'
* removing 'C:/Users/myusername/Documents/R/win-library/3.4/r2excel'
In R CMD INSTALL
Installation failed: Command failed (1)
So I get this error on 'xlsx' loading所以我在“xlsx”加载时收到此错误
What is weird is that I have no trouble loading 'xlsx' and 'rJava' individually with奇怪的是,我可以毫不费力地分别加载 'xlsx' 和 'rJava'
library(xlsx)
I have a x64 java installed (build 1.8.0_161-b12) and a x64 rStudio running so I really don't know where the problem is coming from.我安装了一个 x64 java(构建 1.8.0_161-b12)和一个 x64 rStudio,所以我真的不知道问题出在哪里。
According to liuyanguu in https://github.com/kassambara/r2excel/issues/6 :根据https://github.com/kassambara/r2excel/issues/6 中的liuyanguu :
"This package was not built in 64 bits system so we cannot install it this way. But you can still use all the functions by clone the repo and source or just copy-paste "/R/r2excel.r". There is actually no need to install the package." “这个包不是在 64 位系统中构建的,所以我们不能这样安装它。但是你仍然可以通过克隆 repo 和源或只是复制粘贴“/R/r2excel.r”来使用所有功能。实际上没有需要安装软件包。”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.