Learn R Programming

quickcode (version 1.0.6)

find_packages: Fetch R package based on keyword

Description

This function gets R packages based on a keyword in their description.

Usage

find_packages(keyword)

Value

character vector of matching package names or NULL if no matches.

Arguments

keyword

character, the keyword to search package descriptions for.

Examples

Run this code
# \donttest{
# find the list of R packages for data or machine learning

matched_pkgs <- suppressWarnings(find_packages("plotting"))
matched_pkgs

matched_pkgs <- suppressWarnings(find_packages("machine learning"))
matched_pkgs
# }

Run the code above in your browser using DataLab