
Check if a character string contains valid R code
is_r.Rd
This function takes a character string as input and attempts to parse it as R code using the `parse` function. If the parsing is successful, the function returns TRUE, indicating that the input string contains valid R code. If parsing fails, the function returns FALSE.