available {available}R Documentation

See if a name is available

Description

Searches performed

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)

[Package available version 1.1.0 Index]