modify R script code.
if julia return 1 elment or 1d array convert it to R vector.
if it retrun 2d array convert is to matrix.
otherwise return  array unconvert