Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with reticulate #16

Open
jimjam-slam opened this issue Jul 10, 2019 · 0 comments
Open

Integration with reticulate #16

jimjam-slam opened this issue Jul 10, 2019 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@jimjam-slam
Copy link
Owner

jimjam-slam commented Jul 10, 2019

I've tested collateral by mapping R functions that in turn call python functions, and that's fine to some extent (I haven't tested mapping on a python function directly—I suspect I would need to modify the source to make it work, but I could be wrong).

But side effect management leaves something to be desired at the moment:

  1. Python output streams aren't captured at all unless the python function call is wrapped in reticulate::py_capture_output().
  2. Output streams captured in the above way come out as one long stream—that is to say, individual warnings or outputs aren't separated into a character vector.
  3. Although reticulate::py_capture_output() allows the user to specify either stdout or stderr (or both), types of side effects aren't otherwise separated. In fact, it's not entirely clear to me yet (as I learn more python) whether python's and R's side effects map to each other 1:1 at all.

Ideally collateral would get to a place where python functions "just work" in a predictable and fairly reasonable way.

@jimjam-slam jimjam-slam added enhancement New feature or request help wanted Extra attention is needed labels Jul 10, 2019
@jimjam-slam jimjam-slam added this to the v. 0.6.0 milestone Jul 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant