[R] Windows R doesn't recognize shortcuts ?

ce zadig_1 at excite.com
Wed Jul 23 15:35:48 CEST 2014


Indeed DOS command doesn't work neither . cygwin.lnk list itself but not what is in the folder :

dir cygwin
 Volume in drive C is WINDOWS
 Volume Serial Number is F410-6A8D

 Directory of C:\Users\me\Desktop

File Not Found

dir cygwin.lnk
 Volume in drive C is WINDOWS
 Volume Serial Number is F410-6A8D

 Directory of C:\Users\me\Desktop

08/01/2014  04:07 PM             1,424 cygwin.lnk
               1 File(s)          1,424 bytes
               0 Dir(s)  98,285,953,024 bytes free

dir cygwin.lnk/*.*
Invalid switch - "*.*".

R doesn't lsit cygwin.lnk 

> list.files(path = "cygwin.lnk")
character(0)



-----Original Message-----
From: "Duncan Murdoch" [murdoch.duncan at gmail.com]
Date: 07/23/2014 09:21 AM
To: "ce" <zadig_1 at excite.com>, r-help at r-project.org
Subject: Re: [R] Windows R doesn't recognize shortcuts ?

On 23/07/2014 9:08 AM, ce wrote:
> Hi All,
>
> In Windows 7 , R installation:
>
> R version 3.1.1 Patched (2014-07-14 r66149) -- "Sock it to Me"
> Copyright (C) 2014 The R Foundation for Statistical Computing
> Platform: x86_64-w64-mingw32/x64 (64-bit)
>
> it doesn't recognize shortcuts in path :
>
> >  list.files(path = "cygwin")
> character(0)
>
> cygwin is a shortcut,  in properties window  Target shows : C:\Users\me\cygwin64\home\me
> Real path works :
>
> list.files(path = "C:/Users/me/cygwin64/home/me")
>    [1] "1010week.sh"            "10week.sh"              "a.R"                    "aa.sh"
>

I don't think R should recognize that.  Windows wouldn't recognize it 
either, if you used "dir cygwin" in a shell, for example.

Duncan Murdoch



More information about the R-help mailing list