How to list all installed R-packages

I don’t use R, and nor I do know much about it. However, I maintain R’s installation on linux machines at work. Today, I learned a new trick to list all installed R-packages. Here it is: ip = as.data.frame(installed.packages()[,c(1,3:4)]) ip = ip[is.na(ip$Priority),1:2,drop=FALSE] ip And here is the sample output: Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors....

October 5, 2017 · 1 min · 201 words · kenno