oracle / fastr

A high-performance implementation of the R programming language, built on GraalVM.
Other
626 stars 64 forks source link

Research of analytics in R from Java Code #10

Closed pranasblk closed 6 years ago

pranasblk commented 7 years ago

I'd like to embed R code to my java project. Do you have some tutorial, pointers to existing code of enbeded R in Java, user guide, demo project or other documentation how to use R code (not standalone) from the system running core in written in Java.

Thanks!

lukasstadler commented 7 years ago

Hi! the API for embedding from Java has gotten a major overhaul very recently, a documentation draft is available at https://www.dropbox.com/s/aqy69srqki4g7hw/Embed%20Languages%20with%20the%20Graal%20Polyglot%20SDK.pdf?dl=0 I hope this helps - the examples are written for JavaScript, but they are equally applicable to R.

lukasstadler commented 7 years ago

Just let me know if something's unclear!

armgong commented 7 years ago

maybe renjin is another option?

steve-s commented 6 years ago

There is also a demo: https://github.com/graalvm/examples/tree/master/fastr_javaui

steve-s commented 6 years ago

Documentation is now available at http://www.graalvm.org/docs/reference-manual/languages/r/