available: See if a name is available

View source: R/available.R

availableR Documentation

See if a name is available

Description

Searches performed

  • Valid package name

  • Already taken on CRAN

  • Positive or negative sentiment

Usage

available(name, browse = getOption("available.browse", TRUE), ...)

Arguments

name

Name of package to search

browse

Whether browser should be opened for all web links, default = TRUE. Default can be changed by setting available.browse in .Rprofile. See Startup for more details.

...

Additional arguments passed to utils::available.packages().

Examples

## Not run: 
# Check if the available package is available
available("available")

# You can disable opening of browser windows with browse = FALSE
available("survival", browse = FALSE)

# Or by setting a global option
options(available.browse = FALSE)
available("survival")

# Test if a name is available in a non-default CRAN repository by setting
# the `repos` argument
available_on_cran("semaforos")

available_on_cran("semaforos", repos = "https://bisaloo.r-universe.dev")

## End(Not run)

available documentation built on July 11, 2022, 1:05 a.m.