There's no way to do this. RHistory library of Eikon COM APIs can only be used in Excel VBA, as it has a dependency on Eikon Excel COM add-in.