From a607ed56a82b1026b82e94046742d2487d5a8617 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Tue, 24 Jan 2012 15:05:43 -0800 Subject: [PATCH] * hardcode base packages --- trunk/exec/update_cache | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/trunk/exec/update_cache b/trunk/exec/update_cache index e9bb890..ebf1d3e 100755 --- a/trunk/exec/update_cache +++ b/trunk/exec/update_cache @@ -60,10 +60,24 @@ if (sum(dupes)>0) { # TODO: Check if not better a dedicated tool should be called for this message('updating list of base R packages...') -base_pkgs <- readLines(pipe(paste('sudo pbuilder --execute --override-config --configfile' - ,shQuote(pbuilder_config),'-- /usr/bin/R --vanilla 2>&1 >/dev/null <' - ,shQuote(file.path(root,'exec/get_base_pkgs')) - ,'| grep -v ^W:'))) +base_pkgs <- c("base", + "compiler", + "datasets", + "graphics", + "grDevices", + "grid", + "methods", + "parallel", + "splines", + "stats", + "stats4", + "tcltk", + "tools", + "utils") +# readLines(pipe(paste('sudo pbuilder --execute --override-config --configfile' +# ,shQuote(pbuilder_config),'-- /usr/bin/R --vanilla 2>&1 >/dev/null <' +# ,shQuote(file.path(root,'exec/get_base_pkgs')) +# ,'| grep -v ^W:'))) if (any(grep("^E:",base_pkgs,value=FALSE))) { cat("Cannot continue, the following error occurred:\n") -- 2.39.2