Skip to content
Prev 39926 / 63424 Next

R 2.13.0-beta for Windows, file.copy() throws suspicious errors due to default value of copy.mode

It seems I can reproduce this error under Windows 7 too; it happens
when a file is copied to a directory:
[1] TRUE
[1] TRUE
Error in Sys.chmod(to[okay], file.info(from[okay])$mode, TRUE) :
  'mode' must be of length at least one
In addition: Warning message:
In file.create(to[okay]) :
  cannot create file 'abc/', reason 'Permission denied'
R version 2.13.0 (2011-04-13)
Platform: i386-pc-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936
[2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936
[3] LC_MONETARY=Chinese (Simplified)_People's Republic of China.936
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_People's Republic of China.936

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


Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA
On Thu, Apr 7, 2011 at 3:59 PM, Sharpie <chuck at sharpsteen.net> wrote: