0

I want to call a complex algorithm coded in R from python.

Looking at the RPY2 package documentation I understand that I can call many standard R functions using the robjects package.

I was wondering if this could be extended to my own R routines. Should I package my R stuff or could I use my code as is? Is there a way I could make it accessible?

Thanks for the help.

0

1 Answer 1

1

You do not have to make an R package. Rpy2 can evaluate strings as R code. There is also a convenience system to evaluate a string with R code and wrap it as if it was a package.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks. I tried both and I will go with the package. But thanks for the constructive answer to that simple problem @lgautier

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.