[R] Retrieve model from R without save
murdoch.duncan at gmail.com
Thu Apr 21 13:00:26 CEST 2011
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
> 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.
More information about the R-help