Failed to install package xlsx in version 3.1.3 R

When I run install.packages("xlsx")

I get this:

Installing the package to the folder "C: /Users/Zahra/Documents/R/win-library/3.1 (since" lib is not specified ") Warning: Could not access the index for the 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 not available (as binary package for R version 3.1.3)

I've already tried setRepositories

and a couple more things but no luck! I appreciate any comments

+3


source to share


1 answer


I found my own answer! I figured the problem was that in order to install all of these packages, the required package was "rjava" which could not be downloaded. The reason is that I am using 64 bit OS and R, but I do not have Java 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



+2


source







All Articles