Learn R Programming

NCmisc (version 1.1.6)

search.cran: Search all CRAN packages for those containing keyword(s).

Description

Can be useful for trying to find new packages for a particular purpose. No need for these packages to be installed or loaded. Further searching can be done using utils::RSiteSearch()

Usage

search.cran(txt, repos = "", all.repos = FALSE)

Value

list of hits for each keyword (txt)

Arguments

txt

text to search for, a character vector, not case-sensitive

repos

repository(s) (CRAN mirror) to use, "" defaults to getOption("repos")

all.repos

logical, if TRUE, then use all available repositories from getRepositories()

Author

Nicholas Cooper njcooper@gmx.co.uk

Examples

Run this code
repos <- "http://cran.ma.imperial.ac.uk/" # OR: repos <- getOption("repos")
# setRepositories(ind=1:2) # for the session will by default search bioconductor packages too
search.cran("useful",repos)
search.cran(c("hmm","markov","hidden"),repos=repos)

Run the code above in your browser using DataLab