[R] deleting a file
R.C.Gill at maths.soton.ac.uk
Tue Nov 16 16:43:12 CET 2004
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
Thus creating the directory.
If indicator is greater than zero then the file exists. Now I wish to
remove this file. However, I would like to make the code compatible for
Linux/Windows and Macs.
In Linux I would issue the command
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?
More information about the R-help