Learn R Programming

NCmisc (version 1.1.5)

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)

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)

Examples

Run this code
# NOT RUN {
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)
require(BiocInstaller)
search.cran(c("snpStats","genoset","limma"),all.repos=TRUE)
# }

Run the code above in your browser using DataLab