pak (version 0.3.1)

local_install: Install a package tree

Description

Installs a package tree (or source package file), together with its dependencies.

Usage

local_install(
  root = ".",
  lib = .libPaths()[1],
  upgrade = TRUE,
  ask = interactive(),
  dependencies = NA
)

Value

Data frame, with information about the installed package(s).

Arguments

root

Path to the package tree.

lib

Package library to install the packages to. Note that all dependent packages will the be installed here, even if they are already installed in another library.

upgrade

When FALSE, the default, does the minimum amount of work to give you the latest version of pkg. It will only upgrade packages if pkg, or one of its dependencies, explicitly requires a higher version than what you currently have.

When upgrade = TRUE, will do ensure that you have the latest version of pkg and all its dependencies.

ask

Whether to ask for confirmation when installing a different version of a package that is already installed. Installations that only add new packages never require confirmation.

dependencies

Dependency types. See pkgdepends::as_pkg_dependencies() for possible values. Note that changing this argument from the default might result an installation failure, e.g. if you set it to FALSE, packages might not build if their dependencies are not already installed.

Details

local_install() is equivalent to pkg_install("local::.").

See Also

Other local package trees: local_deps_explain(), local_deps(), local_install_deps(), local_install_dev_deps(), local_package_trees, pak()