Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Calling perl systems from other systems, e.g. R

by Fletch (Bishop)
on Apr 28, 2022 at 03:42 UTC ( [id://11143375]=note: print w/replies, xml ) Need Help??


in reply to Calling perl systems from other systems, e.g. R

Doing the obvious and checking CPAN, there's Statistics::R and R::YapRI (have had people at $work use the former with some degree of success, just saw the other so YMMV . . .). I believe those however are more intended for letting you call into R from perl which sounds maybe the converse of what you're trying to do.

As far as your suggestion of turning the perl bits into a REST/web service that's probably as good a solution as any (and Mojolicious as good a framework as any). That'll let you make a clear break with a defined API and has the added benefit you then could have clients in ANY language call things (say let the python using heathens in on the fun too).

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^2: Calling perl systems from other systems, e.g. R
by swl (Parson) on Apr 28, 2022 at 08:22 UTC

    Thanks. I was aware of Statistics::R but had not seen R::YapRI before. However, as you note, they go in the wrong direction for my use case.

    A generic API is a good target. One could even access such a service from different versions of Perl, which is a not entirely facetious statement as the dependency tree for the client will be much smaller than for the engine and maybe there are cases where the Perl cannot be updated but a packed exe can be installed that takes advantage of newer features. That case is somewhat tangential to this thread, though.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11143375]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-03-29 13:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found