I am struggling to connect given Fasta files, or other files to be analyzed against my Rscript. The code below just pops up everytime

Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
cannot open file '/Users/Desktop/BIO200/LAB7/eksamensdata.txt, header=TRUE': No such file or directory

1 Like

Hi @Sannaradi , try to set the work directory first for read the file.

Set the folder that contain the file.

# first set the work directory
data <- read.table(file = "my_file.txt", header = TRUE)

This topic was automatically closed 7 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.