On 02/10/2011 05:30 PM, Gabor Grothendieck wrote:
On Thu, Feb 10, 2011 at 10:49 AM, Nikhil Joshi<nikhiljo...@gmail.com>  wrote:
Gabor,
thanks for the suggestion.
I did as you have suggested- Started a clean session of R and set the java
option.  Then I sourced the library and tried to read the xlsx file but got
the same error.  I am assuming that Java machine is loaded when the package
xlsx is sourced and not when the base package is sourced (or in other words
upon starting a new R session).  Or am I totally off?
Regards
Nikhil


The JVM would be initialized when xlsx is loaded or when certain
functions in the package are called depending on how the package was
written so as long as you set the java.parameters option prior to
issuing the library(xlsx) command you should be ok.  If that does not
work and assuming the number I suggested is big enough then it must be
something else.  You could try contacting the author to see if other
users have experienced this.

If you still can't get it to work there are a number of alternatives
listed here:
http://rwiki.sciviews.org/doku.php?id=tips:data-io:ms_windows

There is also this recent thread on rosuda-devel which might
be of instructive:

http://mailman.rz.uni-augsburg.de/pipermail/stats-rosuda-devel/2011q1/001621.html

Best,
Tobias

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to