Please help a new user with installation problems

788 views
Skip to first unread message

Charles Brauer

unread,
Feb 11, 2015, 8:55:01 PM2/11/15
to r-packa...@googlegroups.com
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



Adrian Dragulescu

unread,
Feb 14, 2015, 6:35:58 PM2/14/15
to R-package-xlsx
Charles, 

It seems that you did not install properly the rJava package.   Try something like this.  If you get an error, you need to figure out how to install the rJava package.  

> library(rJava)
> .jinit()
> .jcall("java/lang/System","S","getProperty","os.name")
[1] "Linux"

If you still have issues even after you install rJava correctly, I'll try to help, although installation issues are user specific and hard to replicate. 

Best, 
Adrian


--
You received this message because you are subscribed to the Google Groups "R-package-xlsx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to r-package-xls...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

abah...@gmail.com

unread,
Oct 27, 2015, 11:31:24 AM10/27/15
to R-package-xlsx
Hi!
My name is Kokou.
I'm also experiencing the same problem while installing the package xlsx, especially with rJava.
When i write library(rJava), this message appear:
Error : .onLoad a échoué dans loadNamespace() pour 'rJava', détails :
  appel : fun(libname, pkgname)
  erreur : No CurrentVersion entry in Software/JavaSoft registry! Try re-installing Java and make sure R and Java have matching architectures.
In addition: Warning message:
le package ‘rJava’ a été compilé avec la version R 3.0.2 
Error: le chargement du package ou de l'espace de noms a échoué pour ‘rJava’

When i try after read.xlsx, they say
Error: could not find function "read.xlsx"

I don't know if depends on the version of R i use. I've tried all kind of version (R-2.14.2, R-2.11.1, R-2.15.1, R-3.2.2, R-3.0.0, R-3.0.3) but nothing. It's the same error.
Please help me for it's important for me. I'm using Window

Regards!
Reply all
Reply to author
Forward
0 new messages