added a check for cran packages to package_template