Quantcast
Channel: R.NET
Viewing all articles
Browse latest Browse all 1634

New Post: Python (and Other Dynamic Languages) Integration

$
0
0
I´m trying to use R.Net in IronPython. I´ve a C# application that has an IronPython script engine, in a way the user can write a script and run it. The idea is to provide R features to those scripts.

However, as I write the following example:
import clr
mport RDotNet
import RDotNet.Dynamic

R = RDotNet.Dynamic.RDynamic(Rengine)
As I run R.x=1, as you describe, I got the following error message.

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'RDynamic' object has no attribute 'x'

As I try: print "Memory usage = ", float(R.memory.size()), the error message is:

Memory usage = Traceback (most recent call last):
File "<stdin>", line 1, in <module>
SystemError: Operation is not valid due to the current state of the object.

What am I doing wrong?

Tks in advance,

Mauro

Viewing all articles
Browse latest Browse all 1634

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>