Transform Definition of Variables to R Scripts