Get list of installed packages and their details in R

When we need packages in R we install them. May be some time you wanted to have a look what packages were installed in your system and also what there version numbers are. Although rarely you would like to do this, here is a small tip on how to do it.

Launch R and execute the following command

> packinfo <- installed.packages ()

This will return a list of packages installed and a lot of other details like Version, License, LibPath indicating where it is installed etc. Check out what information is given by executing