Update RScript

Correcting variable names