I am using R on a Unix system. I wrote an R script in windows, and uploaded it to Unix (via putty), such that I could run the script in R (in unix) with the command source('CODE.R')
.
Now, here is the problem. In my R script, I wrote write.table(myDataOutput, file = "/myfolder/wantedData.txt")
as my output, but after running the script, the text file is nowhere to be found (not in any folder).
I did some research on google, but it seemed that my question is kind of too specific, and I did not manage to find a similar problem.
Please help me. Thank you!
ps: now the slash is updated. Sorry for the confusion.