Re: [R] Retrieve model from R without save

From: Duncan Murdoch <>
Date: Thu, 21 Apr 2011 07:00:26 -0400

On 11-04-21 5:36 AM, Raji wrote:
> Hi All,
> We have an application which uses R algorithms. We are currently using
> save() command to store models.But for save() command, we have to give the
> filename.But, in our application, we cannot afford to save it in any
> specific location. In this case , for accessing the models generated in R ,
> we cannot use the save() command since, save () stores the pmml in local
> file.
> Is there any way in which we can get the model data directly from R without
> storing it locally?
> Note: Our code is written in Java and we use JRI to connect to R.

Yes, just look at the contents of the model object. See Writing R Extensions for the C interface to do this; from the documentation, JRI duplicates this in Java.

Duncan Murdoch mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 21 Apr 2011 - 11:02:55 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 Mon 25 Apr 2011 - 09:00:32 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive