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
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, ...)
package | Name of formula or cask |
---|---|
cask | If |
force | Do not check for previous installations
(default: |
only_dependencies | Install only dependencies and not the formula itself
(default: |
keep_tmp | Do not delete temporary files created during installation
(default: |
... | Arguments passed on to
|
A logical value indicating whether or not the installation was a success
if (FALSE) { # Install unixodbc brew_install("unixodbc") } if (FALSE) { # Install the Homebrew-compiled version of R brew_install_formula("r") } if (FALSE) { # Install RStudio cask brew_install_cask("rstudio") } if (FALSE) { # Reinstall unixodbc brew_reinstall("unixodbc") } if (FALSE) { # Uninstall unixodbc brew_uninstall("unixodbc") }