Checks that a package is installed, throws an error if it is not.
check_installed(pkg)
pkg
Package name.