getPackageInfo function

Get information on attached packages