Displaying 1 result from an estimated 1 matches for "wangwm".
Did you mean:
wanglm
2005 Jun 07
0
Error calling "read.table" from Python
...error occurred.
However these statements work well when they are input to R directly. It is
so odd.
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.Eva...