install dependencies using package()