]> git.donarmstrong.com Git - cran2deb.git/blobdiff - branch/double_build/exec/get_base_pkgs
initial commit of build all-at-once code.
[cran2deb.git] / branch / double_build / exec / get_base_pkgs
diff --git a/branch/double_build/exec/get_base_pkgs b/branch/double_build/exec/get_base_pkgs
new file mode 100755 (executable)
index 0000000..46de12c
--- /dev/null
@@ -0,0 +1,6 @@
+#!/usr/bin/env r
+instPkgs <- installed.packages(lib.loc="/usr/lib/R/library")
+instPkgs <- instPkgs[ instPkgs[,"Priority"] == 'base', ]
+for (pkg in rownames(instPkgs)) {
+       message(pkg)
+}