Skip to content

read multiple sheets of excel data into R

3 messages · Li Li, Jeff Newmiller, jim holtman

#
Hi all,
  I tried to use the package "XLConnect" to read excel data into R.  I got
the following error message:

Error : .onLoad failed in loadNamespace() for 'rJava', details:
  call: fun(libname, pkgname)
  error: No CurrentVersion entry in Software/JavaSoft registry! Try
re-installing Java and make sure R and Java have matching
architectures.


  I tried read.xls and got the following error  message:
perl executable not found. Use perl= argument to specify the correct
path.Error in file.exists(tfn) : invalid 'file' argument


  Can anyone give me some input on this?
  Thanks.
    Hanna
#
Apparently you need to get your Java runtime setup, or install Perl, depending which of these tools you want to use. 

Or if your data are laid out simply, you might be able to use the readxl package.
#
Try the 'openxlsx' package.  I gave up using XLConnect because of the Java
requirement, and speed on larger tables. "openxlsx" has the access routines
written in C so you don't need any other outside dependencies.


Jim Holtman
Data Munger Guru

What is the problem that you are trying to solve?
Tell me what you want to do, not how you want to do it.

On Sat, May 28, 2016 at 2:34 PM, Jeff Newmiller <jdnewmil at dcn.davis.ca.us>
wrote: