Git Product home page Git Product logo

Comments (5)

jjallaire avatar jjallaire commented on August 22, 2024 1

We basically use R (via Rcpp) to drive the Python C API. Beyond that if you aren't familiar with the R and Python C interop layers there is a lot of context to explain. If you start by studying the r_to_py (https://github.com/rstudio/reticulate/blob/master/src/python.cpp#L902) and py_to_r (https://github.com/rstudio/reticulate/blob/master/src/python.cpp#L585) functions and lookup the docs on the various C functions you should get the hang of it.

from reticulate.

jjallaire avatar jjallaire commented on August 22, 2024

Minimal docs are right here: ;-)

https://github.com/rstudio/reticulate/blob/master/src/python.cpp

from reticulate.

nestordemeure avatar nestordemeure commented on August 22, 2024

Minimal indeed, being unfamiliar with R and python C++ interop mechanisms, it is hard to understand.

A short list of the steps taken by the package (without further explanations) would be nice to grasp the concept and be able to tackle the .cpp files :)

from reticulate.

eddelbuettel avatar eddelbuettel commented on August 22, 2024

"The steps taken by the package": well, that is what the code is for.

Everybody is busy, and the code still changes a lot at this stage, so you may be asking for something nobody has time to add. It's not because we're mean, it's just the nature of the beast. Well-crafted contributions are always welcome, and that can be on the code, test or documentation level.

from reticulate.

nestordemeure avatar nestordemeure commented on August 22, 2024

Don't fear being mean. I was just looking for a global view, a shortcut, to understand the code (a short bullet list is enough).
If I end up putting it together, I will submit a pull request with a small paragraph of documentation.

from reticulate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.