How we can get the list of installed packages by user in R along with its version?
I know about the command installed.packages()
which will give information about all packages (base or non-base). But how we can get those installed by user to have something like this:
Package Version
X 3.01
Y 2.0.1
Z 1.0.2
For all user installed packages (i.e. those package you installed via install.packages("X")
)
non-base
packages?x <- installed.packages(); x[ is.na(x[,"Priority"]), c("Package", "Version")]