I am having some sudden issues with Rstudio in an iMac. I always save my data as txt file to import to Rstudio. But recently, my Mac has had some issues with this. I use the code
xdata=read.table(file="mydata.txt",header=T,sep="\t")
and what I get is:
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
cannot open file 'mydata.txt': No such file or directory
It's not a pathway problem, because I have already set the setwd to the folder where the file is located.
Even though the file is there, the file does not show up in the 'files' section of Rstudio (it was showing up yesterday, now it's not). I tried the exact same thing on a different computer (windows) and it worked fine. The file is displaying in the folder and Rstudio imports the data normally.
Any ideas of what is going on with my Mac? It was working fine until it suddenly stopped working. I have uninstalled and reinstalled Rstudio and I have updated the packages and the mac itself.