conan_install: Create a self-contained library

View source: R/install.R

conan_installR Documentation

Create a self-contained library

Description

Create a self-contained library, using pkgdepends.

Usage

conan_install(
  lib,
  packages,
  policy = "upgrade",
  repos = NULL,
  cran = NULL,
  path_bootstrap = NULL,
  path_cache = NULL
)

Arguments

lib

The path to install into. We will create a self-contained library at this address.

packages

A character vector of packages to install. These can be names of CRAN packages or GitHub references etc; see pkgdepends::new_pkg_installation_proposal() for more details

policy

Should be either "lazy" or "upgrade", with a default of "upgrade"

repos

A character vector of repositories to use when installing. A suitable CRAN repo will be added if not detected (using the cran argument if provided)

cran

Fallback CRAN repo to use. If not given we will use ⁠https://cloud.r-project.org⁠

path_bootstrap

The path to find the "bootstrap library" at (created via conan_bootstrap(); this contains the packages required to install your packages, kept separate from the lib. If not given then a per-session path will be used (within tempdir()) but installation can be sped up by using a persistent path. If NULL but the environment variable CONAN_PATH_BOOTSTRAP we will use the directory pointed at by that environment variable.

path_cache

Path to the pkgdepends cache. Falls back on environment variable CONAN_PATH_CACHE, or if that is not set to a temporary directory.

Value

Nothing, called for side effects of creating a library at lib.


mrc-ide/conan documentation built on Nov. 14, 2023, 6:23 p.m.