[Rd] problem with tilde expansion in install.packages
Roger D. Peng
rpeng at jhsph.edu
Wed Jun 23 18:00:19 CEST 2004
Peter Dalgaard wrote:
> "Roger D. Peng" <rpeng at 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/
More information about the R-devel
mailing list