From ripley at stats.ox.ac.uk  Thu Apr  5 10:49:39 2007
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Thu, 5 Apr 2007 09:49:39 +0100 (BST)
Subject: [Rd] tilde expansion with install.packages
In-Reply-To: <461424E7.6060105@jhsph.edu>
References: <461424E7.6060105@jhsph.edu>
Message-ID: <Pine.LNX.4.64.0704050948010.16695@gannet.stats.ox.ac.uk>

Looks right, and now committed, thanks.

On Wed, 4 Apr 2007, Roger D. Peng wrote:

> 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
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] tilde expansion with install.packages
Prof Brian Ripley