2012-03-21 77 views
0

我試圖從R.呼叫在XLL插件(用於Excel)中定義的方法與此類似Python代碼R/XLL:接口來調用方法XLL中的R

東西:

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接口的庫?謝謝你的幫助。

回答

1

rcom + statconnDCOM是你需要的。 rcom在CRAN上,因此您可以執行install.packages(「rcom」)

statconnDCOM在此處可用:http://rcom.univie.ac.at/