From simon.urbanek at r-project.org  Mon Dec 26 19:34:15 2005
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Mon, 26 Dec 2005 13:34:15 -0500
Subject: [Rd] Rserve setSEXP command
In-Reply-To: <43AFCC9D.1040501@jsoftware.com>
References: <43AFCC9D.1040501@jsoftware.com>
Message-ID: <0B42BEC6-F137-4B11-8CF2-E210ECC22087@r-project.org>

Hi Chris,

On Dec 26, 2005, at 5:57 AM, Chris Burke wrote:

> Can any valid SEXP expression be given in the setSEXP command?
>
> I tried to send a numeric matrix by including the dim attribute  
> with the data, but get an error code 68 (some parameters are  
> invalid). Is the dim attribute not supported by setSEXP? If so,  
> does this mean a matrix should be sent as a list, then a dim  
> command sent in a second step?

It's a combination of a bug and missing feature. The bug is that the  
attribute of an expression is not decoded at all. The missing feature  
is that (dotted-pair) lists are not supported in decode, so you can't  
pass an attribute anyway, because they are stored in dotted-pair  
lists. So, for now, yes, you have to assign the names in a separate  
step - I'll need to fix that ... I'll keep you posted.

Thanks for spotting this!

Cheers,
Simon



[Rd] Rserve setSEXP command
Simon Urbanek