Abe Miessler
Abe Miessler

Reputation: 85036

Where are files written to in R?

If I use the write method, where will these files be written? Example:

write(results, file="myFile.csv", ncolumns=1)

I don't specify a full path so I assume it's writing to some default directory. I checked program files, but it's not there. Suggestions on where to look?

Upvotes: 1

Views: 685

Answers (1)

El Developer
El Developer

Reputation: 3346

If you type from within your R session:

getwd()

You should be able to retrieve your current working directory, that's the place where the files should be saved to.

Upvotes: 9

Related Questions