I'm new to R and i have question about using file.exist.
I tried:
if(!file.exist("data")){
dir.create("data")
}
But I get the error, could not find function "file.exist".
I then tried:
if (is!TRUE(file.exists("data"))) {
dir.create("data")
}
I still get an error, unexpected '!' in "if (is!". But it creates the folder.
What am I doing wrong?