check_for_package(package)
#check_for_package("stats") #check_for_package("does_not_exist")
Run the code above in your browser using DataLab