package private constructor of r classes. fixed variable names parsing from r script