update convert rdata to csv script