Skip to main content

hey_rexec

RExec is a simple interface for running R in bulk on .R files. It is not intended to be a replacement for rpy or rpy2. If you’re the kind of person who does some analysis in R and just wants to mechanize running it (rather than a closer integration with Python), this library might be for you.

__doc__

A chaining R executing object.

RExec lets you run R code and get the results from Python. For the most part, the interface is pretty hacky. The goal is to make it easy to automate the usage of existing R files, rather than make elegant programs integrating R and Python. (For the latter, you might consider rpy or rpy2.)

An RExec object takes a directory where it will be run. You can then add R code to the object in a variety of ways (append_string, append_file and so on). When you are done appending to the RExec object, you can use the execute() method which will run an R slave process on all of the R that you have appended so far (concatenated together. Finally, you can get access to results of your R script in a relatively unorthodox way. Any files output with an “r_” prefix will be available by calling get_text() or get_graphic() as appropriate.

RExec has a chaining interface. This means you can do things like:

r_ex =(RExec(some_dir)
       .append_file("some.R")
       .append_file("other.R")
       .execute())
r_ex.get_graphic('foo.svg', path='absolute')

Release files for hey_rexec 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hey_rexec 1.0.0
File Size Uploaded
hey_rexec-1.0.0.tar.gz 3.9 kB Details

Release files / hey_rexec-1.0.0.tar.gz

Download URL hey_rexec-1.0.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
188acf012800394431a54f8d9d8cadb8eb71e45223416b7628b06b7c53b25642
BLAKE2b-256 checksum
How to use checksums
cd230034c795cee7dcfce710804caf7545648274a16d6fcf9bd16db92a09c2ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page