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

View source: R/NCmisc.R

search.cranR Documentation

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)

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()

Value

list of hits for each keyword (txt)

Author(s)

Nicholas Cooper njcooper@gmx.co.uk

Examples

## 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"))

NCmisc documentation built on Oct. 17, 2022, 5:09 p.m.