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