[R] Can JRI access user's packages on Vista?

From: Chris Pudney <chris_at_focal-technologies.com>
Date: Wed, 01 Dec 2010 11:40:50 +0800


I've developed a Java application that uses JRI to make use of the ptw package: http://cran.r-project.org/web/packages/ptw/index.html

On Linux (Ubuntu 10.04, R 2.10.1, JRI 0.5.0) it works fine.

However, on Vista (R 2.12.0, JRI 0.5.0) when the application evaluates "library(ptw)" the following error occurs:

Error in library(ptw) : object 'ptw' not found

When I run R from the Vista command-line and issue the "library(ptw)" command there is no problem.

If I copy the ptw package from my %USER_HOME%\Documents\R\win-library to
%R_HOME%\library then the problem goes away. However, I don't want my
users to have to do this, in fact, some might not have permission to do so.

Therefore, how can I get JRI to invoke an R-Engine that has access to packages that the user has installed in their


R-help_at_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. Received on Wed 01 Dec 2010 - 04:06:33 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 01 Dec 2010 - 05:40:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive