Skip to content
Prev 13060 / 15075 Next

R-SIG-Mac Digest, Vol 205, Issue 13

This will do it as well:

package_list <- tapply(rownames(installed.packages()), installed.packages()[,"LibPath"], c)

Bonus to find out which library directories are writable by the user:

file.access(names(package_list), mode=2) == 0

Cheers,

Colin