Error in file(file, "rt") : cannot open the connection in R code example Example: Error in file(file, "rt") : cannot open the connection directory <- ("./specdata")