Getting Started, but having issues with ClrFacade

Dec 15, 2015 at 3:20 AM
Hello Again -
I'm trying to develop to a set of third party C# libraries in R via rClr.
First, my understanding (correct me if I'm wrong) is that I need to load the .dll of the libraries I intend to use to access methods/classes within their namespace.
To do so, I use the clrLoadAssembly('dllFile.dll'), correct?

Once there, I should be able to access the structs, methods, classes etc. in the same way as the example for "HelloWorld":

f <- clrNew('Path.To.Namespace.Class')

and then subsetquently set/get etc. (using clrSet/Get)

If the above is correct, for some reason, I'm not able to do so.

When I run clrLoadAssembly('Namespace') I either get the following error:

Error in clrLoadAssembly("xerces-c_vc100_2.8.0.dll") :
Type: System.ArgumentException
Message: Could not determine Type from string 'TradingTechnologies.TTAPI.PriceSubsrciption'
Method: System.Object CreateInstance(System.String, System.Object[])
Stack trace:
at Rclr.ClrFacade.CreateInstance(String typename, Object[] arguments) in c:\Users\per202\AppData\Local\Temp\RtmpCgiQDm\R.INSTALL25f0662d7f4e\rClr\src\ClrFacade\ClrFacade.cs:line 316

OR

It loads with NO error, and I see the library when I run clrGetLoadedAssemblies(), and when I assign it to an R variable, I can see the underlying namespaces,

BUT still get the seemingly same message:

Error in clrNew("TradingTechnologies.TTAPI.Session.TTAPI") :
Type: System.ArgumentException
Message: Could not determine Type from string 'TradingTechnologies.TTAPI.Session.TTAPI'
Method: System.Object CreateInstance(System.String, System.Object[])
Stack trace:
at Rclr.ClrFacade.CreateInstance(String typename, Object[] arguments) in c:\Users\per202\AppData\Local\Temp\RtmpCgiQDm\R.INSTALL25f0662d7f4e\rClr\src\ClrFacade\ClrFacade.cs:line 316


What am I doing wrong?

Much appreciated,

Total Newb :)