Navin Goyal
2012-Oct-11 22:12 UTC
[R] Error in file(file, "rt") : cannot open the connection
Hi, I am using R package "QT" which call runs alongwith SAS I get this error : " Error in file(file, "rt") : cannot open the connection" I have tried using setwd or running R directly from that directory but still get the same error. Any help would be appreciated setwd("C:\\Documents and Settings\\....\\two") data= read.csv("data.csv", header=T) head(data) info <- list( saspath="\"C:/Program Files/SAS/SASFoundation/9.2", output="C:\\Documents and Settings\\...\\two",device="tiff", ........... ) Thanks -- Navin Goyal [[alternative HTML version deleted]]
S Ellison
2012-Oct-12 12:24 UTC
[R] Error in file(file, "rt") : cannot open the connection
> I get this error : " Error in file(file, "rt") : cannot open > the connection" >... > saspath="\"C:/Program Files/SAS/SASFoundation/9.2",I don't know the package but your saspath only contains one quote mark, so you have given it "C:/Program Files/SAS/SASFoundation/9.2 to open. Would it not need a closing quote or (noting that it's a simple enough path, no opening quote? S ******************************************************************* This email and any attachments are confidential. Any use...{{dropped:8}}