[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-help
Subject:    Re: [R] Rserve and creating a list of lists
From:       Saptarshi Guha <saptarshi.guha () gmail ! com>
Date:       2008-11-30 23:52:13
Message-ID: 7E5054CE-DD47-4364-8167-724CFB3FEBFD () gmail ! com
[Download RAW message or body]

Hello,
	With reference to the problem below, I have narrowed it down to  
trellis objects containing language objects , e.g a trellis object has  
a list element called $prepanel.default which is a function.
	The same happens if assign the result of an 'dist' call since it  
contains as one of its attributes the calling function (as a language).
	The error returned by Rserve (latest version) is "Error: unsupported  
type 0"
	So if the result of an eval is a language block, then it can't be  
assigned?
	Is there a work around this?
	Regards
	Saptarshi
	R.version = 2.8

>
> On Nov 30, 2008, at 5:53 PM, Saptarshi Guha wrote:
>
>> Hello,
>> 	I have some code which generates lattice objects. The function  
>> recieves serialized forms of the lattice objects which it then  
>> unserializes and then adds to an ArrayList<REXP>.
>> 	
>> 	REXPRaw rser = new REXPRaw( target );  //target contains the raw  
>> serialized forms of lattice objects
>> 	rconn.assign("temp",rser);
>> 	REXP ret = rconn.eval("invisible(unserialize(temp))"); (1)
>> 	rexpArr.add(ret);
>> 	RList rlist = new RList(rexpArr);
>> 	REXPList rl = new REXPList(rlist);
>>
>> 	The problem is when I do an assign
>>
>> 	rconn.assign("finalresult",rl);
>>
>> 	whence I get
>> 	*** REXPFactory unable to interpret  
>> org.rosuda.REngine.REXPUnknown@1629ce8c[4] *
>> 	** REXPFactory unable to interpret  
>> org.rosuda.REngine.REXPUnknown@1629ce8c[4]
>> 	*** REXPFactory unable to interpret  
>> org.rosuda.REngine.REXPUnknown@1629ce8c[4]
>> 	*** REXPFactory unable to interpret  
>> org.rosuda.REngine.REXPUnknown@1629ce8c[4]
>> 	*** REXPFactory unable to interpret  
>> org.rosuda.REngine.REXPUnknown@1629ce8c[4] *
>> 	** REXPFactory unable to interpret  
>> org.rosuda.REngine.REXPUnknown@1629ce8c[4]
>>
>>
>> 	How can I in general,force the unserialize to return a list?
>> Saptarshi Guha | saptarshi.guha@gmail.com | http://www.stat.purdue.edu/~sguha
>> Marijuana is nature's way of saying, "Hi!".
>>
>
>
>

Saptarshi Guha | saptarshi.guha@gmail.com | http://www.stat.purdue.edu/~sguha
An adequate bootstrap is a contradiction in terms.


	[[alternative HTML version deleted]]

______________________________________________
R-help@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.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic