1

我一直在尝试使用 R 的RDCOMClient,SWinTypeLibsRDCOMServer包运行一些代码。

代码可以在以下地址找到: http ://www.omegahat.org/RDCOMEvents/examples/excelButton.R 。

不幸的是,当我尝试加载SWinTypeLibsRDCOMServer包时,我收到以下错误:

“错误:包 'SWinTypeLibs' 是在 R 2.10.0 之前构建的:请重新安装它”

“错误:包 'RDCOMServer' 是在 R 2.10.0 之前构建的:请重新安装它”

目前正在使用的 RI 版本是 R 2.13.2。然后我尝试使用早期版本的 R 来解决这个问题(版本 R 2.9.2)。

这解决了问题,SWinTypeLibs但我收到以下错误RDCOMServer

Error in .cacheClass(cl, cldef, is(cldef, "ClassUnionRepresentation"),  : 
  trying to get slot "package" from an object (class "classRepresentation") that is not an S4 object 
In addition: Warning messages:
1: '.__M__createCOMObject:RDCOMServer' looks like a pre-2.4.0 S4 object: please recreate it 
2: '.__M__getValueOf:RDCOMServer' looks like a pre-2.4.0 S4 object: please recreate it 
3: '.__M__QueryInterface:RDCOMServer' looks like a pre-2.4.0 S4 object: please recreate it 
4: '.__M__setValueOf:RDCOMServer' looks like a pre-2.4.0 S4 object: please recreate it 
5: 'createCOMObject' looks like a pre-2.4.0 S4 object: please recreate it 
6: 'getValueOf' looks like a pre-2.4.0 S4 object: please recreate it 
7: 'QueryInterface' looks like a pre-2.4.0 S4 object: please recreate it 
8: 'setValueOf' looks like a pre-2.4.0 S4 object: please recreate it 
Error: package/namespace load failed for 'RDCOMServer'

SWinRegistry请注意,在此之前,我还安装RuuidRDCOMServer.

有谁知道我能做些什么来解决这个问题?

4

0 回答 0