check_pkg function

Check R-packages for globals and imports