sanity_check function

Sanity check for R files in the project