(PR#2003) bug in SJava
Sun, 3 Nov 2002 19:52:58 +0000 (GMT)
There is no function `getHome' in the R sources.
There is a function getRHOME(), but that is not part of the documented
interface (front-ends/readme). If SJava is calling getRHOME, it needs to
be modified to just use the documented interface.
getRHOME has not been modified since 1999, BTW.
On Thu, 31 Oct 2002 email@example.com wrote:
> This is a multi-part message in MIME format.
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> Ok, I try to explain the problem better:
> getHome() uses now "GetModuleFileName()" to determine
> the R home-directory. "GetModuleFileName()" doesn't check
> the R_HOME environment setting, instead it returns the
> path of the .EXE, that started R, which is usually located in
> $R_HOME/bin. If R is invoked via Java, "GetModuleFileName()"
> returns $JDK_HOME/jre/bin instead of $R_HOME/bin and
> the function "getRHome()" returns $JDK_HOME/jre...
> My suggestion is just to rely on $R_HOME, instead of
> using "GetModuleFileName()", because all "xxx calls R"
> packages will have similar problems. I added in my sample
> fix the check for $RHOME, since SJava does the same,
> may be this is historical, just ignore it...
> Heinz Grimm
Brian D. Ripley, firstname.lastname@example.org
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: email@example.com