-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not set static function to a variable in R #320
Comments
Your "radians" method is a static java method. If you want only to expose the static methods in RLangPApplet, then you use the following instead:
On the other hand, it's pretty reasonable to expect to be able to access static methods/fields via an instance, so we should probably fix this in Renjin. |
In order to access static methods/fields via an instance in Renjin -- what would it take? Should this be filled as a separate issue / feature request; would it require significant development effort? |
I think this should not be too difficult. Take a look at the class in the org.renjin.invoke.reflection package to get started. If you're interested in us implementing it for you, consider our Renjin Enterprise Support package! |
Many thanks! |
Hi, I am using renjin to implement R Language mode for Processing. And I find a issue:
There is a function in
RLangPApplet
:And I put a
RLangPApplet
instance into R context bythis.renjinEngine.put("processing", instance);
When I callprocessing$radians
, it works. But when I runradians = processing$radians
, it raises an error: https://pastebin.com/Lxzh4Bb2FYI: When I do:
It works again. I am wondering if there is a bug or I miss something.
The text was updated successfully, but these errors were encountered: