Unable to install xlsx package on R version 3.1.3

元气小坏坏 提交于 2019-12-10 19:10:14

问题


When I run install.packages("xlsx") I get this:

Installing package into ‘C:/Users/Zahra/Documents/R/win-library/3.1’ (as ‘lib’ is unspecified) Warning: unable to access index for repository https://rweb.quant.ku.edu/cran/bin/windows/contrib/3.1 Warning: unable to access index for repository http://www.rforge.net/bin/windows/contrib/3.1 Warning message: package ‘xlsx’ is not available (as a binary package for R version 3.1.3)

I already tried setRepositories and a couple of more things but no luck! I appreciate any comments


回答1:


I found my own answer! I figured the problem was that for installing all those packages, the required package was "rjava" that couldn't be loaded. The reason was the fact I am using a 64-bit OS and R version but do not have Java installed with the same architecture.I downloaded Java 64-bit(Windows Offline (64-bit)) from this page: https://www.java.com/en/download/manual.jsp After that just reloaded the xlsx package and it worked



来源:https://stackoverflow.com/questions/31389317/unable-to-install-xlsx-package-on-r-version-3-1-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!