Hello,
I'm trying to install xlsx on a Windows 8.1 (x64) machine.
My Java version is jre1.8.0_25
My RStudio version is Version 0.98.1091 – © 2009-2014 RStudio, Inc.
My attempt to install xlsx is as follows:
> install.packages('xlsx')
Installing package into ‘C:/Users/Charles/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
Content type 'application/zip' length 400568 bytes (391 Kb)
opened URL
downloaded 391 Kb
Warning in install.packages : downloaded length 400568 != reported length 400568
package ‘xlsx’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Charles\AppData\Local\Temp\RtmpaegMEa\downloaded_packages
My attempt to install rJava is as follows:
> install.packages('rJava')
Installing package into ‘C:/Users/Charles/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
Content type 'application/zip' length 758898 bytes (741 Kb)
opened URL
downloaded 741 Kb
package ‘rJava’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Charles\AppData\Local\Temp\RtmpaegMEa\downloaded_packages
>
Now, when I enter:
> require(xlsx)
Loading required package: xlsx
Loading required package: rJava
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Users/Charles/Documents/R/win- library/3.1/rJava/libs/x64/rJava.dll':
LoadLibrary failure: The specified module could not be found.
Failed with error: ‘package ‘rJava’ could not be loaded’
>
and when I try:
> res <- read.xlsx("C:/sm/Trending/Hypothesize/BottleRocketGapdata.xlsx", 1) # read first sheet
Error: could not find function "read.xlsx"
>
I'm a new at this so any help will be greatly appreciated.
Charles