No such file or directory, but the file exist!

cpgi.df <- read.table("intro2R_data/data/subset.cpgi.hg18.bed", header = FALSE)
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
cannot open file 'intro2R_data/data/subset.cpgi.hg18.bed': No such file or directory

This is saying R can’t find a file by this name at this directory path.

You can find you current working directly via the getwd function.

If you’re using RStudio, you can use the handy import dataset tool, which lets you load data via a GUI. It’s also nice since it’ll show you the R code it used to load your data.

1 Like

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.