R FAQS about Packages

Question: What version of R do I run on my computer or laptop?

Answer: To get the information about version of R, sue the following command at R prompt.

# get version of R

You will get result like
[1] “R version 3.2.1 (2015-06-18)”

Question: What R packages are already installed?

Answer: To get a list of installed packages in R, write “library()” without quotation marks at the R prompt. R will first list all of the packages installed in local R directory of your computer system and then it will list all packages installed globally on your computer system.

# list all R packages installed

You would get results like (note that results below are given as example only, its not a complete list)

Packages in library ‘C:/Users/abcd/Documents/R/win-library/3.2’::
combinat     combinatorics utilities
proftools      Output Processing Tools for R
rgl                3D visualization device system (OpenGL)

Packages in library ‘C:/Program Files/R/R-3.2.1/library’:
KernSmooth      Functions for kernel smoothing for Wand & Jones (1995)
MASS                Support Functions and Datasets for Venables and Ripley’s MASS



Leave a Reply

%d bloggers like this: