Running Python code from R

Good afternoon. I need to convert Python code into R code. Could you, please, tell me, how it is possible to accomplish this goal with the help of R or any R packages?

If this isn't possible, could you, please, point me the ways to run Python code from RStudio?

Thank you for your help.

You can create a python script

image
or you can use the reticulate package to run python code from R

I wonder, if there is any way to transform code, written in Python, into code, written in R.
Or only interfaces exist?

I'm not aware of any and I think it is not very likely that one even exists since both R and Python are open source with thousands of packages contributed by thousands of people so beyond the base languages it would be very hard to find direct translations.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.