diff --git a/com.oracle.truffle.r.test.cran/r/install.cran.packages.R b/com.oracle.truffle.r.test.cran/r/install.cran.packages.R index d32e109a51d5d33ee1bde5d364f278402932eb9d..666cbf895c6b5aad29a4134fdb24cb2dc9a7f5c6 100644 --- a/com.oracle.truffle.r.test.cran/r/install.cran.packages.R +++ b/com.oracle.truffle.r.test.cran/r/install.cran.packages.R @@ -1,5 +1,5 @@ # -# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -73,6 +73,8 @@ # --alpha-daily implicitly sets --pkg-pattern from the day of the year modulo 26. E.g., 0 is ^[Aa], 1 is ^[Bb] # --ok-only implicitly sets --pkg-filelist to a list of packages known to install +# TODO At some point this will need to upgraded to support installation from other repos, e.g. BioConductor, github + args <- commandArgs(TRUE) usage <- function() { @@ -479,7 +481,7 @@ do.it <- function() { if (list.versions) { for (i in (1:length(rownames(toinstall.pkgs)))) { pkg <- toinstall.pkgs[i, ] - cat(pkg["Package"], pkg["Version"], "\n", sep=",") + cat(pkg["Package"], pkg["Version"], paste0(contriburl, "/", pkg["Version"], ".tar.gz"), "\n", sep=",") } }