RStudio says .ods and .csv files don't exist

dir.exists("LearnR")
#> [1] FALSE
file.exists("timelinetest.csv")
#> [1] FALSE
file.exists("Unctad.ods")
#> [1] FALSE

Created on 2021-08-19 by the reprex package (v2.0.1)

I'm using Ubuntu 20.04. Both directory and files exist and work normally outside R. Any thought on this?

Are you in the right directory?

Yes, and the stranger thing is that RStudio recognises the directory.

I've upgraded R and RStudio and the problem persists.

It is very unlikely that this is related to R or RStudio, since you are using a relative path, start by making sure your working directory is set where you think it is, run getwd() and see if it returns the folder where "timelinetest.csv" is stored.

Also, you could use an absolute path to reference the files to avoid any possible confusion.

Some cloud memory like Dropbox automatically moves dormant files to the cloud and RStudio then fails to find them, beven though the file is listed in a local synced directory.

I've tested the working directory, but I guess you're right. This seems not related to RStudio. I was able to read the .ods file, although I still don't know what was wrong.

In my case I use internal storage. At least one of them worked.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.