Skip to content
Prev 7748 / 21312 Next

[Bioc-devel] Challenges with package installation on fresh R

It looks like devtools::package_deps is forcing type to be "binary".
if (identical(type, "both")) {
        type <- "binary"
}
function (pkg, dependencies = NA, repos = getOption("repos"),
    type = getOption("pkgType"))
{
    if (identical(type, "both")) {
        type <- "binary"
    }
    if (length(repos) == 0)
        repos <- character()
    repos[repos == "@CRAN@"] <- "http://cran.rstudio.com"
    cran <- available_packages(repos, type)
    if (missing(pkg)) {
        pkg <- as.package(".")$package
    }
    deps <- sort(find_deps(pkg, cran, top_dep = dependencies))
    inst <- installed.packages()
    base <- unname(inst[inst[, "Priority"] %in% c("base", "recommended"),
        "Package"])
    deps <- setdiff(deps, base)
    inst_ver <- unname(inst[, "Version"][match(deps, rownames(inst))])
    cran_ver <- unname(cran[, "Version"][match(deps, rownames(cran))])
    diff <- compare_versions(inst_ver, cran_ver)
    structure(data.frame(package = deps, installed = inst_ver,
        available = cran_ver, diff = diff, stringsAsFactors = FALSE),
        class = c("package_deps", "data.frame"), repos = repos,
        type = type)
}
<environment: namespace:devtools>
On Fri, Jun 26, 2015 at 2:12 PM, Vladislav Petyuk <petyuk at gmail.com> wrote: