Re: [Rd] Rserve setSEXP command

From: Simon Urbanek <>
Date: Mon 26 Dec 2005 - 18:34:15 GMT

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!

Simon mailing list Received on Tue Dec 27 05:41:29 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:35 GMT