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
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
Seemingly Similar Threads
- problem with tilde expansion in install.packages
- Tilde expansion in ManageSieve for dovecot-1.1.
- make install fails with makeinfo < 4.7
- CentOS6 and tilde expansion
- [Bug 3552] New: ssh_config option RevokedHostKeys doesn't do tilde expansion on the filename