From hintak_leung at yahoo.co.uk  Tue Jul 28 23:38:46 2009
From: hintak_leung at yahoo.co.uk (Hin-Tak Leung)
Date: Tue, 28 Jul 2009 21:38:46 +0000 (GMT)
Subject: [Rd] R --vannilla for install/remove/shlib(Re: R 2.8->2.9 change
	that breaks some upgrade scenarios)
Message-ID: <820730.16144.qm@web23106.mail.ird.yahoo.com>

This is the change I suggested earlier - it should just disable more of user/site customization during package installation/removal, and getting more of R 2.8-like behavior back. Attached and inlined below. 
Against svn r48897 (svn HEAD AFAIK).

--------------------------------------------------
diff --git a/src/scripts/INSTALL b/src/scripts/INSTALL
index 42470c2...4c7bae9 100755
--- a/src/scripts/INSTALL
+++ b/src/scripts/INSTALL
@@ -9,4 +9,4 @@ while test -n "${1}"; do
 done
 
 ## NB: Apple's ICU needs LC_COLLATE set when R is started.
-echo 'tools:::.install_packages()' | R_DEFAULT_PACKAGES= LC_COLLATE=C "${R_HOME}/bin/R" --no-restore --slave --args ${args}
+echo 'tools:::.install_packages()' | R_DEFAULT_PACKAGES= LC_COLLATE=C "${R_HOME}/bin/R" --vanilla --slave --args ${args}
diff --git a/src/scripts/REMOVE b/src/scripts/REMOVE
index dcbe5bf..0be7462 100644
--- a/src/scripts/REMOVE
+++ b/src/scripts/REMOVE
@@ -1,4 +1,4 @@
 # ${R_HOME}/bin/REMOVE for removing add-on packages
 
-R_DEFAULT_PACKAGES=NULL "${R_HOME}/bin/R" -f "${R_SHARE_DIR}/R/REMOVE.R" --no-restore --slave --args $@
+R_DEFAULT_PACKAGES=NULL "${R_HOME}/bin/R" -f "${R_SHARE_DIR}/R/REMOVE.R" --vanilla --slave --args $@
 
diff --git a/src/scripts/SHLIB b/src/scripts/SHLIB
index d0ab9a0..ab62369 100644
--- a/src/scripts/SHLIB
+++ b/src/scripts/SHLIB
@@ -1,5 +1,5 @@
 #
 # ${R_HOME}/bin/SHLIB
 
-echo 'tools:::.SHLIB()' | R_DEFAULT_PACKAGES=NULL "${R_HOME}/bin/R" --no-restore --slave --no-site-file --no-init-file --args $@
+echo 'tools:::.SHLIB()' | R_DEFAULT_PACKAGES=NULL "${R_HOME}/bin/R" --vanilla --slave --args $@
 
--------------------
[Hin-Tak at localhost R]$ 



      
-------------- next part --------------
A non-text attachment was scrubbed...
Name: R-more-vanilla.diff
Type: text/x-patch
Size: 1308 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20090728/3fbd9c08/attachment.bin>


[Rd] R --vannilla for install/remove/shlib(Re: R 2.8->2.9 change that breaks some upgrade scenarios)
Hin-Tak Leung