is_r function

Check if a character string contains valid R code