Use ensure_packages to install dependencies