Check to see if all packages are available in a given library
conan_check(packages, library)
A character vector of package names or pkgdepends "references"
A path to a library
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
# Simple usage:
conan::conan_check(c("conan", "pkgdepends"), .libPaths())
#> $complete
#> [1] TRUE
#>
#> $found
#> [1] "conan" "pkgdepends"
#>
#> $missing
#> character(0)
#>
# While we parse references, we don't check version information:
conan::conan_check("github::mrc-ide/conan@v2.0.0", .libPaths())
#> $complete
#> [1] TRUE
#>
#> $found
#> [1] "conan"
#>
#> $missing
#> character(0)
#>
# Missing packages will be returned as the inferred package name
conan::conan_check("github::org/unknownpkg", .libPaths())
#> $complete
#> [1] FALSE
#>
#> $found
#> character(0)
#>
#> $missing
#> [1] "github::org/unknownpkg"
#>