From rpeng at jhsph.edu  Wed Jun 23 18:00:19 2004
From: rpeng at jhsph.edu (Roger D. Peng)
Date: Wed Jun 23 18:00:22 2004
Subject: [Rd] problem with tilde expansion in install.packages
In-Reply-To: <x21xk6clxl.fsf@biostat.ku.dk>
References: <Pine.LNX.4.44.0406231537050.10798-100000@gannet.stats>	<40D99792.70705@jhsph.edu>
	<x21xk6clxl.fsf@biostat.ku.dk>
Message-ID: <40D9A913.2080606@jhsph.edu>

Peter Dalgaard wrote:
> "Roger D. Peng" <rpeng@jhsph.edu> writes:
> 
> 
>>I didn't compile this version of R myself but I believe readline is
>>compiled in -- the command history works and:
>>
>> > capabilities("cledit")
>>cledit
>>   TRUE
>>
>>Also,
>>
>> > Sys.getenv("HOME")
>>                   HOME
>>"/users/student/rpeng"
>>
>>which is in fact my home directory.
> 
> 
> I think sufficiently braindead versions of sh just will do this to you,
> including the one that comes default on Solaris 9:
> 
> rasch:~/>/usr/bin/sh
> $ ls ~
> ~: No such file or directory

I get the same result on our system.

> 
> This applies also to system() processing, e.g. 
> 
> system("mkdir -p ~/xxx") 
> 
> gets you a directory "~" with subdir "xxx". (NB: If you try this,
> think VERY carefully about how to remove that dir!!!!)

Yes, I've already made that mistake once.  Once.

-roger

-- 
Roger D. Peng
http://www.biostat.jhsph.edu/~rpeng/


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