get_available_packages: Get the list of available packages

View source: R/get_available_packages.R

get_available_packagesR Documentation

Get the list of available packages

Description

Get names of packages that you have locally installed or that are available to be installed.

Usage

get_available_packages(bioc = FALSE, local = FALSE, reset_cache = FALSE)

Arguments

bioc

A logical value. If TRUE the Bioconductor dependencies data will be taken from the Bioconductor repository. For this option to work properly, BiocManager package needs to be installed.

local

A logical value. If TRUE only data of locally installed packages will be used (without API usage).

reset_cache

A logical value. If TRUE the cache will be cleared before obtaining the list of packages.

Details

Function uses caching - only the first usage scraps information from servers. Those objects are then saved locally in temporary file and further usages loads needed data from the file.

Arguments bioc and local cannot be TRUE simultaneously. If neither local nor bioc are TRUE, vector contains all packages available currently on CRAN. If bioc is TRUE, vector contains all packages available currently on CRAN and via Bioconductor. If local is TRUE, vactor contains all of the packages that are currently installed.

Value

A character vector.

Examples



library(deepdep)

av <- get_available_packages()
head(av)




deepdep documentation built on March 7, 2023, 6:35 p.m.