Displaying 1 result from an estimated 1 matches for "fife7184".
2005 Jun 07
0
Error calling "read.table" from Python
...The Python scripts are as the following,
from win32com.client import Dispatch
sc=Dispatch("StatConnectorSrv.StatConnector")
sc.Init("R")
sc.SetSymbol("dir","D:/wangwm/work/LeafAngle/Py")
sc.Evaluate("setwd(dir)")
sc.SetSymbol("file","FIFE7184.LAD")
#print(sc.Evaluate("file"))
sc.SetSymbol("sep",'","')
print(sc.GetSymbol("file"))
print(sc.Evaluate("getwd()"))
print(sc.Evaluate("read.table(file,sep=sep,skip=4)"))
The error disappear when commenting the last statemen...