install.packages("xlsx")
also installing the dependency ‘xlsxjars’
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/3.6:
cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/PACKAGES'
installing the source packages ‘xlsxjars’, ‘xlsx’
trying URL 'https://cran.rstudio.com/src/contrib/xlsxjars_0.6.1.tar.gz'
Content type 'application/x-gzip' length 9477071 bytes (9.0 MB)
downloaded 9.0 MB
trying URL 'https://cran.rstudio.com/src/contrib/xlsx_0.6.5.tar.gz'
Content type 'application/x-gzip' length 489493 bytes (478 KB)
downloaded 478 KB
- installing source package 'xlsxjars' ...
** package 'xlsxjars' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error: package or namespace load failed for 'rJava':
.onLoad failed in loadNamespace() for 'rJava', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Users/ABC/AppData/Local/anaconda3/envs/rstudio/lib/R/library/rJava/libs/x64/rJava.dll':
LoadLibrary failure: %1 is not a valid Win32 application.
Error: package 'rJava' could not be loaded
Execution halted
ERROR: lazy loading failed for package 'xlsxjars'
- removing 'C:/Users/ABC/AppData/Local/anaconda3/envs/rstudio/lib/R/library/xlsxjars'
Warning in install.packages :
installation of package ‘xlsxjars’ had non-zero exit status
ERROR: dependency 'xlsxjars' is not available for package 'xlsx'
- removing 'C:/Users/ABC/AppData/Local/anaconda3/envs/rstudio/lib/R/library/xlsx'
Warning in install.packages :
installation of package ‘xlsx’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\ABC\AppData\Local\Temp\RtmpKMiMSt\downloaded_packages’