Helper function for package installation

Name here might change, but install_packages seems liable to colide with
other packages and confuse with install.packages