Describe sources

conan_sources(packages, repos = NULL, cran = NULL)

Arguments

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

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

Value

An object of type conan_sources which can be used later with conan, conan_install etc

Author

Rich FitzJohn

Examples

conan::conan_sources(c("pkg1", "pkg2"))
#> $packages
#> [1] "pkg1" "pkg2"
#> 
#> $repos
#>                          CRAN 
#> "https://cloud.r-project.org" 
#> 
#> attr(,"class")
#> [1] "conan_sources"