Skip to content

Windows R doesn't recognize shortcuts ?

3 messages · ce, Duncan Murdoch, Keith Jewell

ce
#
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 :
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"
....
#
On 23/07/2014 9:08 AM, ce wrote:
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
1 day later
#
On 23/07/2014 14:21, Duncan Murdoch wrote:
The "shortcut" which appears as cygwin is actually a file
called cygwin.lnk

readWindowsShellLink {R.utils} reads such files:
 > readWindowsShellLink(con="cygwin.lnk")