Skip to content
Snippets Groups Projects
Commit 82bd6436 authored by Carl Boettiger's avatar Carl Boettiger
Browse files

symlink installGithub.r too

parent e14f8cf8
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,7 @@ RUN apt-get update -qq && apt-get -y --no-install-recommends install \
&& echo "R_LIBS=\${R_LIBS-'/usr/local/lib/R/site-library:/usr/local/lib/R/library:/usr/lib/R/library'}" >> /usr/local/lib/R/etc/Renviron \
&& Rscript -e "install.packages(c('littler', 'docopt'), repo = '$MRAN')" \
&& ln -s /usr/local/lib/R/site-library/littler/examples/install2.r /usr/local/bin/install2.r \
&& ln -s /usr/local/lib/R/site-library/littler/examples/installGithub.r /usr/local/bin/installGithub.r \
&& ln -s /usr/local/lib/R/site-library/littler/bin/r /usr/local/bin/r \
&& install2.r --error \
--repos 'http://www.bioconductor.org/packages/release/bioc' \
......
#!/usr/bin/env Rscript
#
# A simple example to install one or more packages
# Copyright (C) 2006 - 2015 Dirk Eddelbuettel
# Modified 2016 Carl Boettiger
# Released under GPL (>= 2)
argv <- commandArgs(TRUE)
if (is.null(argv) | length(argv) < 1) {
cat("Usage: installr.r pkg1 [pkg2 pkg3 ...]\n\n")
cat("Set environment variables REPOS and LIBLOC to overrride defaults.\n")
cat("Installs pkg1, ... from existing files with matching extension.\n")
q()
}
## adjust as necessary, see help('download.packages')
repos <- Sys.getenv("REPOS")
if( repos == "") repos <- getOption("repos")
withCallingHandlers(
sapply(argv, install.packages, repos = repos, dep = as.logical(Sys.getenv("INCLUDE_SUGGESTS"))),
warning = stop)
## clean up any temp file containing CRAN directory information
sapply(list.files(path = tempdir(), pattern = "^(repos|libloc).*\\.rds$", full.names = TRUE), unlink)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment