Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatically get list of base packages

Tags:

r

How can I get R to list its base install packages. Dirk gives a list HERE but how can I get R to tell me this information, that is the packages in src/library/?

getOption("defaultPackages") is close but only lists some of these packages.

like image 441
Tyler Rinker Avatar asked Feb 05 '14 01:02

Tyler Rinker


1 Answers

rownames(installed.packages(priority="base"))
 [1] "base"      "compiler"  "datasets"  "graphics"  "grDevices" "grid"     
 [7] "methods"   "parallel"  "splines"   "stats"     "stats4"    "tcltk"    
[13] "tools"     "utils"    
like image 93
Josh O'Brien Avatar answered Sep 26 '22 07:09

Josh O'Brien