Learn R Programming

NCmisc (version 1.2.0)

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
## not run # repos <- "http://cran.ma.imperial.ac.uk/" # OR: repos <- getOption("repos")
## not run # search.cran("draw")
## not run # search.cran(c("hmm", "markov", "hidden"))

Run the code above in your browser using DataLab