To list all available that is installed packages for your GNU R installation, start GNU R:
$ R

R version 3.0.2 (2013-09-25) -- "Frisbee Sailing"
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: x86_64-redhat-linux-gnu (64-bit)
Once the GNU R program started use library method to list all installed packages:
> library()
Packages in library ‘/usr/local/R-packages’:

ada                     ada: an R package for stochastic boosting
amap                    Another Multidimensional Analysis Package
arules                  Mining Association Rules and Frequent Itemsetsde
...
utils                   The R Utils Package
zoo                     S3 Infrastructure for Regular and Irregular
                        Time Series (Z's ordered observations)

SUBSCRIBE TO NEWSLETTER
Subscribe to Linux Career NEWSLETTER and receive latest Linux news, jobs, career advice and tutorials.


As alredy mentioned the above command will only list available packages. To see all currently loaded packages for your current GNU R session you can use search():
> search()
[1] ".GlobalEnv"        "package:stats"     "package:graphics" 
[4] "package:grDevices" "package:utils"     "package:datasets" 
[7] "package:methods"   "Autoloads"         "package:base"
In order to see a library path thus the filesystem location on where are all packages physically installed use .libPaths():
> .libPaths()
[1] "/usr/local/R-packages" "/usr/lib64/R/library"  "/usr/share/R/library"
FIND LATEST LINUX JOBS on LinuxCareers.com
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed.
LINUX CAREER NEWSLETTER
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.

You may also be interested in:



Comments and Discussions