makeValidCode function

Make valid R code