From rpeng at jhsph.edu  Thu Apr  5 00:21:27 2007
From: rpeng at jhsph.edu (Roger D. Peng)
Date: Wed, 04 Apr 2007 18:21:27 -0400
Subject: [Rd] tilde expansion with install.packages
Message-ID: <461424E7.6060105@jhsph.edu>

I've noticed recently that 'update.packages' and 'install.packages' seem to not 
do tilde expansion anymore, i.e. when I run

update.packages("~/R-local/lib")

on R-alpha (r41043) I get the message

/home/rpeng/install/R-alpha/lib64/R/bin/INSTALL: line 304: cd: ~/R-local/lib: No 
such file or directory

and the package is subsequently installed in the current working directory.

The attached patch solves the problem for me.

-roger
-- 
Roger D. Peng  |  http://www.biostat.jhsph.edu/~rpeng/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: INSTALL.patch
Url: https://stat.ethz.ch/pipermail/r-devel/attachments/20070404/b4ea418d/attachment.pl 


[Rd] tilde expansion with install.packages
Roger D. Peng