check_source function

Check R-scripts, folders or R-code strings for globals and imports