check_cran_deps function

Check for required CRAN packages and prompt installation if missing.