Object result = rlist.get(i);
if (result instanceof REXPVector) {
REXPVector vector = (REXPVector) result;
handleVector(vector, sb, isTerminate);
} else if (result instanceof REXPString) {
sb.append("'" + ((REXPString) result).asString() + "'");
} else if (result instanceof REXPDouble) {