Support for passing strings from D to R and vice versa.

struct RString {
ProtectedRObject data;


string s = "Hello World";
Robj rs = RString(s); // rs can be passed to R as rs.robj
Robj rs = s.robj; // Same as the previous call
While there is nothing wrong with using this struct directly, it is easier to just call robj on the string directly to pass it to R.

See Also

stringArray and toString for passing strings from R into D.