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?