conan_check: Check if packages in library

View source: R/check.R

conan_checkR Documentation

Check if packages in library

Description

Check to see if all packages are available in a given library

Usage

conan_check(packages, library)

Arguments

packages

A character vector of package names or pkgdepends "references"

library

A path to a library

Value

A list with elements

  • complete: logical, indicating if all packages were found

  • found: A character vector of found packages

  • missing: A character vector of missing packages

Examples

# Simple usage:
conan::conan_check(c("conan", "pkgdepends"), .libPaths())

# While we parse references, we don't check version information:
conan::conan_check("github::mrc-ide/conan@v2.0.0", .libPaths())

# Missing packages will be returned as the inferred package name
conan::conan_check("github::org/unknownpkg", .libPaths())

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