I need to call a R script from AnyLogic. I have an agent 'sensor' and it is going to send a random file from a specific location to a R script and then the R script will analyze that file and will let us know type of that file (image, sound, text etc)
Please let me know how to call a R script from AnyLogic..
i'm not sure there is an direct adapter for AnyLogic and R,but all agents in AnyLogic are Java objects so you can call external java (.jar) programs. JRI is a Java/R interface http://rforge.net/JRI/ you can write your R script within JRI then call from AnyLogic
Rcaller is another route. Pretty simple and still active development: https://code.google.com/p/rcaller/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With