Re: [R] file.link fails on NTFS

2012-12-08 Thread Rui Barradas

Hello,

Checks. It seems like a Windows specific bug, it works on Ubuntu 12.04/R 
2.15.2. I'll post to R-devel.


> sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: i386-w64-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=Portuguese_Portugal.1252 LC_CTYPE=Portuguese_Portugal.1252
[3] LC_MONETARY=Portuguese_Portugal.1252 LC_NUMERIC=C
[5] LC_TIME=Portuguese_Portugal.1252

attached base packages:
[1] stats graphics  grDevices utils datasets  methods   base



Rui Barradas
Em 08-12-2012 06:07, Oliver Soong escreveu:

Windows 7 64-bit, R 2.15.2 i386.  Working directory is on an NTFS drive.


writeLines("", "file.txt")
file.link("file.txt", "link.txt")

Warning in file.link("file.txt", "link.txt") :
   cannot link 'link.txt' to 'link.txt', reason 'The system cannot find
the file specified'

No link is created.  The 'link.txt' to 'link.txt' is suspicious.  Does
this happen to anybody else?  I didn't find anything in my searches.

Oliver

__
R-help@r-project.org  mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] file.link fails on NTFS

2012-12-07 Thread Oliver Soong
Windows 7 64-bit, R 2.15.2 i386.  Working directory is on an NTFS drive.

> writeLines("", "file.txt")
> file.link("file.txt", "link.txt")
Warning in file.link("file.txt", "link.txt") :
  cannot link 'link.txt' to 'link.txt', reason 'The system cannot find
the file specified'

No link is created.  The 'link.txt' to 'link.txt' is suspicious.  Does
this happen to anybody else?  I didn't find anything in my searches.

Oliver

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.