Re: [R] deleting a file

2004-11-16 Thread Uwe Ligges
Achim Zeileis wrote: On Tue, 16 Nov 2004 15:43:12 - Roger Gill wrote: Dear all, I have a very simple question. Simple, that is, if you know the answer. Yes, look at ?file.remove Z ... and file.path() in order to specify the location in an OS independent way. Uwe Ligges I wish to delete

Re: [R] deleting a file

2004-11-16 Thread Achim Zeileis
On Tue, 16 Nov 2004 15:43:12 - Roger Gill wrote: > Dear all, > > I have a very simple question. Simple, that is, if you know the > answer. Yes, look at ?file.remove Z > I wish to delete a file in a given directory after having first > checked its existence. I issue the following command

Re: [R] deleting a file

2004-11-16 Thread Roger D. Peng
You may be interested in one of dir.create(), file.exists(), or unlink(). -roger Roger Gill wrote: Dear all, I have a very simple question. Simple, that is, if you know the answer. I wish to delete a file in a given directory after having first checked its existence. I issue the following command

Re: [R] deleting a file

2004-11-16 Thread Jeff Gentry
> In Linux I would issue the command > system('rm paste(path,'filename',sep='')') > and this works just fine. It does not however work for windows, and I have > no idea whether it would work on a mac. > Is there a single command thay escapes me? Yes. help("file.remove")

[R] deleting a file

2004-11-16 Thread Roger Gill
Dear all, I have a very simple question. Simple, that is, if you know the answer. I wish to delete a file in a given directory after having first checked its existence. I issue the following commands path<-'c:example/R/' Thus creating the directory. indicator<-length(grep(filename,path)) If