Package pacman contains various functions to read pacman package information.