Comments (5)
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.
Minimal docs are right here: ;-)
https://github.com/rstudio/reticulate/blob/master/src/python.cpp
from reticulate.
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.
"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.
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)
- Shiny app runs only in fresh R Sessions if a few reticulate lines are run at the terminal first. HOT 3
- import inside py_capture_output breaks delay_load HOT 6
- Error: ModuleNotFoundError: No module named 'rpytools' HOT 3
- Release reticulate 1.36.0 HOT 2
- Enable reticulate bin/scripts on PATH HOT 12
- Function to know if miniconda is installed HOT 1
- how to exit (r-reticulate) environment HOT 2
- Add optional `--override-channels` to all `conda_*` functions that accept `channel=` HOT 4
- Wrong PATH with use_condaenv when we choose any env except base one
- use_condaenv does not change actual env
- Support deactivate from conda HOT 2
- When passing python location I encounter '/c' not found HOT 2
- Conversion scope does not work in `py_to_r.pandas.core.frame.DataFrame` HOT 8
- NUMPY NOT FOUND BUT ACTUALLY INSTALLED HOT 7
- AttributeError: module 'jax.numpy' has no attribute 'product' HOT 1
- Release reticulate 1.37.0 HOT 1
- Release reticulate 1.36.1
- Support `results = 'hide'` directly in python engine HOT 2
- Interrupting keras training reliably produces a segfault HOT 5
- FR: R Print method for Python callables should show signature HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reticulate.