Possible Duplicate:
Check existence of directory and create if doesn't exist
Is this line of code
if(!file.exists("PLOTS")) dir.create("PLOTS")
equivalent to this line of code?
dir.create('PLOTS',showWarnings=FALSE)
Is there any circumstance in which one will work and the other will not?