Eikon COM RSearch in R
I am trying to get Eikon COM Rsearch to work with R
I have some rather old code that I am trying to revive as it was at least partially working
I am using these libraries in R:
require(RDCOMClient)
require(audio)
I have tried creating connection in two ways:
eikon = COMCreate("EikonDesktopDataAPI.EikonDesktopDataAPI")
(a la C# tutorial here)
eikon = COMCreate("EikonDesktopDataAPILib.EikonDesktopDataAPI")
(from my old code). Both do not work but errors are different
> eikon = COMCreate("EikonDesktopDataAPI.EikonDesktopDataAPI")
Error: Invalid class string
In addition: Warning message:
In getCOMInstance(name, force = TRUE, silent = TRUE) :
Couldn't get clsid from the string
> eikon = COMCreate("EikonDesktopDataAPILib.EikonDesktopDataAPI")
Error in COMCreate(guid, existing = FALSE) :
Failed to create COM object: Class not registered
I also created a registry key ({89CB9AA2-9658-4D64-A86F-C6A4D89778BF}) for dex2.dll, as advised previously. Not sure if the key is the same still. Also, not sure if there is also a key one needs for rsearch.dll or rsearchagent.dll. Obviously, I have not gotten that far quite yet...
Best Answer
-
These errors are due to the fact that DEX2 and RSearch libraries are reg free COM dlls. You could get around this by manually creating registry entries for the type libraries. However, if the objective is to use RSearch library in R, I'm afraid this might be a dead end. The reason is that the interface of RSearch library only allows to access the search results from the OnUpdate event handler. And RDCOMClient does not support handling of COM events in R. There used to be a package named RDCOMEvents, but it hasn't been maintained in 15 years and I don't believe it still works. You could try implementing event handling for RSearch library following this article. I haven't tried it myself and can't tell you if it works.
0
Answers
-
COMCreate("EikonDesktopDataAPILib.EikonDesktopDataAPI") is the correct command. This COM library is registered. You can find EikonDesktopDataAPILib.EikonDesktopDataAPI class listed under HKCR\CLSID registry hive. Since it's a 32-bit library, its class GUIDs appear in the registry under Wow6432 node. Judging by the fact that your R interpreter complains it cannot find CLSID registry entry for EikonDesktopDataAPILib.EikonDesktopDataAPI, I suspect you must be using 64-bit R. All Eikon COM APIs libraries are 32-bit and can only be used in 32-bit applications.
0 -
Thank you @alex-putkov. This was indeed part of the problem.
Now,
eikon = COMCreate("EikonDesktopDataAPILib.EikonDesktopDataAPI")
eikon$Initialize()execute without errors.
The next step also gets executed without errors but with a warning
rsearchmgr = eikon$CreateRSearchMgr()
Warning message:
In createCOMReference(<pointer: 0x1aa6c2ac>, "COMUnknown") :
Using COMIDispatch instead of COMIDispatchHowever, the warning is not innocuous: the next line throws an error:
cookie = rsearchmgr$Initialize()
Error in .COM(x, name, ...) :
Cannot locate 0 name(s) Initialize in COM object (status = -2147319779)The same problem for dex2:
cookie = dex2mgr$Initialize()
Could you please provide the rest of the steps including a simple search example?
0
Categories
- All Categories
- 6 AHS
- 38 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛