[Rd] tilde expansion with install.packages

Roger D. Peng rpeng at jhsph.edu
Thu Apr 5 00:21:27 CEST 2007


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 


More information about the R-devel mailing list