Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/29.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python R/XLL:在R中调用XLL方法的接口_Python_Excel_R_Interface_Xll - Fatal编程技术网

Python R/XLL:在R中调用XLL方法的接口

Python R/XLL:在R中调用XLL方法的接口,python,excel,r,interface,xll,Python,Excel,R,Interface,Xll,我试图从R调用XLL加载项(用于Excel)中定义的方法 类似于此Python代码的内容: import os from win32com.client import Dispatch Path = 'myxll.xll' xlApp = Dispatch("Excel.Application") xlApp.RegisterXLL(Path) # function call from excel # =xllfunction("param1","param2",...) result =

我试图从R调用XLL加载项(用于Excel)中定义的方法

类似于此Python代码的内容:

import os
from win32com.client import Dispatch
Path  = 'myxll.xll'
xlApp = Dispatch("Excel.Application")
xlApp.RegisterXLL(Path)

# function call from excel
# =xllfunction("param1","param2",...)

result = xlApp.run('xllfunction', "param1","param2",...)

在R中是否有任何库不支持XLL接口?感谢您的帮助。

rcom+STATCONDCOM正是您所需要的。rcom在CRAN上,因此您可以安装.packages(“rcom”)

statconnDCOM可在以下位置获得: