Thank you for the solution. If R had an equivalent to the C typecast, sending symbols would be simple, by using a double vector. If you know a way to store characters in a double in R, we could implement a direct Rs function. But I think it's probably not possible.