brew_install: Install a formula or cask

Description Usage Arguments Value Examples

View source: R/brew_install.R

Description

brew_install() installs a formula or cask. For information about additional arguments, see brew_help("install").

brew_reinstall() uninstalls and then reinstalls a formula or cask using the same options it was originally installed with, plus any appended options specific to a formula.

brew_uninstall() uninstalls a formula or cask

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
brew_install(
  package,
  cask = FALSE,
  force = FALSE,
  only_dependencies = FALSE,
  keep_tmp = FALSE,
  ...
)

brew_install_formula(package, ...)

brew_install_cask(package, ...)

brew_reinstall(package, ...)

brew_uninstall(package, ...)

Arguments

package

Name of formula or cask

cask

If TRUE, package refers to a cask. If FALSE (default), package refers to a formula.

force

Do not check for previous installations (default: FALSE)

only_dependencies

Install only dependencies and not the formula itself (default: FALSE)

keep_tmp

Do not delete temporary files created during installation (default: FALSE)

...

Arguments passed on to brew_cmd

cmd

The command to run (e.g., install)

args

Additional arguments for the command

brew_cmd

Optional: Location of brew command.

echo

Whether to print output and error messages to the screen. Defaults to TRUE for interactive sessions.

Value

A logical value indicating whether or not the installation was a success

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
## Not run: 
# Install unixodbc
brew_install("unixodbc")

## End(Not run)
## Not run: 
# Install the Homebrew-compiled version of R
brew_install_formula("r")

## End(Not run)
## Not run: 
# Install RStudio cask
brew_install_cask("rstudio")

## End(Not run)
## Not run: 
# Reinstall unixodbc
brew_reinstall("unixodbc")

## End(Not run)
## Not run: 
# Uninstall unixodbc
brew_uninstall("unixodbc")

## End(Not run)

briandconnelly/homebrew documentation built on Dec. 19, 2021, 11:43 a.m.