contains_r_func function

Check if a text file or character string contains an R function definition