if(rexp.isRaw()) {
return rexp.asBytes();
}
if(rexp.isList()) {
RList rList = rexp.asList();
Object[] listOfREXP = rList.toArray();
//convert object in List as Java Objects
// eg: REXPDouble as Double or Doubles
for(int i = 0; i < listOfREXP.length; i++){
REXP obj = (REXP)listOfREXP[i];
Object javaObj = rexp2javaObj(obj);