]> git.donarmstrong.com Git - cran2deb.git/blobdiff - trunk/exec/get_base_pkgs
fix brown bag bug / typo
[cran2deb.git] / trunk / exec / get_base_pkgs
index d08d62546b73186e9111667a0f595f3143c2e80f..fb6230decfab8434b8a998a1199981fb73cd50f8 100755 (executable)
@@ -1,4 +1,6 @@
 #!/usr/bin/env r
-for (pkg in rownames(installed.packages())) {
+instPkgs <- installed.packages(lib.loc="/usr/lib/R/library")
+instPkgs <- instPkgs[ instPkgs[,"Priority"] == 'base', ]
+for (pkg in rownames(instPkgs())) {
        message(pkg)
 }