install: Install Package

View source: R/dev.R

installR Documentation

Install Package

Description

Wrapper around R CMD INSTALL with quiet mode option.

Usage

install(path = ".", quiet = TRUE)

Arguments

path

Path to package root directory.

quiet

Logical. Suppress output except errors? Default TRUE.

Value

TRUE if successful, FALSE otherwise (invisibly).

Examples

# Calls 'R CMD INSTALL', which writes to the user's R library.
# Wrapped in if(interactive()) so CRAN's automated checks never
# mutate the library.

if (interactive()) {
  install()
  install(quiet = FALSE)
}


tinypkgr documentation built on April 22, 2026, 9:07 a.m.