Re: [R] any simple examples for SJAVA please (fwd)

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Re: [R] any simple examples for SJAVA please (fwd)

Roger Bivand
Since there were questions on this list about using SJava, this post by
Duncan Temple Lang on r-help should be of use in understanding the current
status of the package.

Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Breiviksveien 40, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93
e-mail: Roger.Bivand at

---------- Forwarded message ----------
Date: Fri, 28 May 2004 07:09:17 -0700
From: Duncan Temple Lang <duncan at>
To: Vincent MUTEAUD <muteau at>
Cc: Laura Holt <lauraholt_983 at>, r-help at
Subject: Re: [R] any simple examples for SJAVA please

The SJava package is a very flexible and general bidirectional
interface between R and Java that can allow not only
simple data and complex data structures to be passed between
the languages, but also references to objects
including using R functions as Java methods.  Other approaches
to inter-system interfaces are much simpler and direct
but as  a result are more limited for general computation.
There is a great deal of infrastructure under SJava that makes
it a general Java interpreter.
And building a variety of different communication mechanisms
to R really ignores the existng literature  in the subject.

Unfortunately, there are more opinions about the SJava
package than people who actually understand the issues.
At the moment, what is a real problem is that
there isn't a significant culture for people
to help package authors distribute Windows binaries,
but more that Windows users require software
without any additional effort.
Unfortunately, I do not have the time to keep my Windows machine upgraded for service
packages, virus software, etc. simply to create binaries for
Windows users that I currently do not need.  

I would be very happy to work with someone who uses Windows
and wanted to take on providing binaries. I can
both explain and simplify the build process
(dropping the support for S-Plus).  But it is prohibitive
to spend all my time supporting the Omegahat packages and R  on numerous platforms
while still doing research so that people have fresh ideas in 5 years time.
There is a real danger that statistical computing research will become
bogged down servicing currrent needs of users and extending
concepts that were research topics 20 years ago  rather than
working on new concepts that will needed for the future.

So I am hoping that one or more people can volunteer to
help with maintaining the Windows port.
It is definitely not trivial as the SJava package is more complex
in nature (and implemenation) than  many others, but it is



Vincent MUTEAUD wrote:

> Hi,
> like you I'm trying to use SJava and I meet with many difficulties.
> I try to run examples from "Calling R from Java" written by Duncan Temple
> Lang available from (there are many examples
> on this web site).
> Now I have an error that my R version is R 1.6.1 while I have version 1.9.0
> on windows NT. This causes a crash when I run my Java code:
> fatal error: enable to open the  base package
> I still waiting for a solution
> Best
> A 07:58 28/05/2004 -0500, Laura Holt a ?crit :
> >Hi!
> >
> >Are there any simple examples for SJAVA please?
> >
> >Thanks,
> >Laura
> >R Version 1.9.0 Windows
> >
> >_________________________________________________________________
> >Is your PC infected? Get a FREE online computer virus scan from McAfee?
> >Security.
> >
> >______________________________________________
> >R-help at mailing list
> >
> >PLEASE do read the posting guide!
> >
> ______________________________________________
> R-help at mailing list
> PLEASE do read the posting guide!

Duncan Temple Lang                        duncan at
 371, Kerr Hall
 University of California at Davis

Phone: (530) 752-4782
FAX:   (530) 752-7099

R-help at mailing list
PLEASE do read the posting guide!

Roger Bivand
Department of Economics
Norwegian School of Economics
Helleveien 30
N-5045 Bergen, Norway