Mapping R API to Python
Project description
Interoperate R with Python
Installation
# install released version
pip install -U rchitect
# or the development version
pip install -U git+https://github.com/randy3k/rchitect
Why reinvent the wheel?
You may be curious why I reinvented the wheel when there is rpy2
?
The main reason is to drive radian
.
rpy2
was not suitable because it is missing some key features for running
the R REPL. Speaking of compatibility, rchitect
has been thoroughly tested on
multiple platforms such as Windows, macOS and Linux and we also provide binary
wheels for python 2.7 and 3.5+.
Getting started
from rchitect import *
a = reval("1:5") # evaluate an R expression in the global environment
b = rcopy(a) # convert any RObject returned by `reval` to its python type
c = robject(b) # convert any python object to its R type
d = rcall("sum", c) # call an R function. Python objects are converted to RObjects implicitly.
FAQ
How to switch to a different R or specify the version of R.
There are two options.
- One could expose the path to the R binary in the
PATH
variable - The environment variable
R_BINARY
could also be used to specify the path to R. - The environment variable
R_HOME
could also be used to specify R home directory. Note that it is should be set as the result ofR.home()
, not the directory whereR
is located. For example, in Unix
$ env R_HOME=/usr/local/lib/R radian
Cannot find shared library
Please also make sure that R was installed with the R shared library libR.so
or libR.dylib
or libR.dll
. On Linux, the flag --enable-R-shlib
may be needed to install R from the source.
Wiki
reticulate conversions
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rchitect-0.3.27.tar.gz
(29.6 kB
view hashes)
Built Distributions
Close
Hashes for rchitect-0.3.27-pp36-pypy36_pp73-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6ac2c83c3f4a11190ed7c07730d7d3d2b0be423e14a014375c4655e2f308976 |
|
MD5 | 6d8e0504d8567a0bed62b84f13a74933 |
|
BLAKE2b-256 | 032e6dfa9e3bba059f21a573aab0944f5f404e1cac94ec2a9177bb08519e0f2e |
Close
Hashes for rchitect-0.3.27-pp36-pypy36_pp73-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22568c4608aa5eb3ebf201ccdacddb3ea3ab38f820982b0c0c6ed9da1db6f056 |
|
MD5 | e33e874c042ea7d0fc25fbd8e23a4a45 |
|
BLAKE2b-256 | 4309e183f61e98b6af66e7c9da17de6475690b86f2e255c762c8c28201d2abe0 |
Close
Hashes for rchitect-0.3.27-pp36-pypy36_pp73-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e74fd1e5759430bdff57750e79ae36b4fd3e7e07b2ffbaa468a19d42799ad1a1 |
|
MD5 | 5846d509465d5db9310de51194ad380e |
|
BLAKE2b-256 | 1d7b8dbeacb5b9f47dd02abcbe2db2b403e104559c1ef254ed68329625daa27b |
Close
Hashes for rchitect-0.3.27-pp36-pypy36_pp73-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52244f2b139f7ec6573e5446036205737aa4040a38d72d077cc2e57d0601c970 |
|
MD5 | acb5eb10bb528ee71b56c1819c5bc304 |
|
BLAKE2b-256 | 76d5de9d03effe2b1748160c3e0b37c36960419ba473cf6392dddc908bafa27a |
Close
Hashes for rchitect-0.3.27-pp27-pypy_73-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b5312dab525ca77f8417ac0254f4746dd2447e8b399f297f75408ac95fbfd2e |
|
MD5 | 5bee100338083351598b8f5c61383bf3 |
|
BLAKE2b-256 | 969d929477f1d54ccb0c1f36d134697e7615670234b68018d2eee79c3c28005e |
Close
Hashes for rchitect-0.3.27-pp27-pypy_73-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 296ba8945dd21a5d9bad6b3cd7db85d55f0becd7cb0570ce03108d5d1e281440 |
|
MD5 | dc2cc68b9beeefc1957be48b5c20f0b5 |
|
BLAKE2b-256 | 59fe675599487b6c867e2f62926a4a1d75a83a66c7684d4a76c4ac2c0e40842f |
Close
Hashes for rchitect-0.3.27-pp27-pypy_73-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba4ab3f07b8d7105cd89d8e07eabbcd26f89e635903c2708c333c9251c721f64 |
|
MD5 | 9bf566292d93876b67755b6ec990b607 |
|
BLAKE2b-256 | 4fcd2c3277dec6dfe174c1a6f2b0ce3c9599f6bbe835043ce8d3c29c3507fee8 |
Close
Hashes for rchitect-0.3.27-pp27-pypy_73-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1685224e19e01ddc086cba485c4e05a8c6d10e6975b7fbcbc8e256d931f2a5a |
|
MD5 | 972438ddb0877d5e68cb03f615a8fabf |
|
BLAKE2b-256 | de89b015663908132e20aff5ae749f4fbcfe31c9085d9f99312f20f6fc158172 |
Close
Hashes for rchitect-0.3.27-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee1066864ea552a86b470eea932d79c0438e0ec2c387464a0106f23b7eb0ce63 |
|
MD5 | 538e8d68630b4ea958e83bd4cd7278a6 |
|
BLAKE2b-256 | 2dc3ffc8b784bcdfe6813f06c2ec30c28f5684185f62a3be0a6a9b8468ae9987 |
Close
Hashes for rchitect-0.3.27-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d9eff88fa3c1b08915e790795ea460def3e7d4441bf46e93e0c2bc0a5878194 |
|
MD5 | dd084c14b63ad97f75be9d59c05f9bb3 |
|
BLAKE2b-256 | d438b6d3f3cecb161bea4028234098b0cf443edfea40e84a02bb1abf9a6a8aa5 |
Close
Hashes for rchitect-0.3.27-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e129de9f68bf6e9d3948c786c323e23ef56f532790cab379c0eb64da103e51f |
|
MD5 | b40b035d58f359399c5530237e51ab80 |
|
BLAKE2b-256 | b7f91f64079dccceb69a38216a4c715920f93c969d349b0ddd44292ff05b86cd |
Close
Hashes for rchitect-0.3.27-cp38-cp38-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6f71310b1e1620978b9680419b5231b753d3f9cc3bff6e626293d4bfdc220a8 |
|
MD5 | b6eba258f8014eceee49669b1ecaa3fe |
|
BLAKE2b-256 | cb678056013c16cdf3bb932f500885fdfd7792a9b6db366477056dff571af14d |
Close
Hashes for rchitect-0.3.27-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da9e3f2d972a2d04667cc1926ecfff0d7db9ac9569707ef5d62aed9c392cc94b |
|
MD5 | 13f7d9fa085fd123aba5dc22e985d95d |
|
BLAKE2b-256 | 3c394049170034cdcce8d6d988e72f2f195ef13fc881861a49ad99f0e9eb3643 |
Close
Hashes for rchitect-0.3.27-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2c536e1a7cf91788de45138192cec0e4d03a41dc2bae1a595b7e603801c21b7 |
|
MD5 | c88ae231da83cc04b06ebb5f38632d93 |
|
BLAKE2b-256 | 08031d9321a87dae1c40d0ba43e7d056b2fc3c5667f4ae20a4ad234fa0018d52 |
Close
Hashes for rchitect-0.3.27-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b90fd44618a662bca2e55c6a93628ef72967039e8bdb53cf721211b4586fc46 |
|
MD5 | d724a1bb9d4aba98ebe3bd5ad4a942b0 |
|
BLAKE2b-256 | 27647983eda2a1bb4b6fcba64a550742993f548ee1fb184b70ab9d4ecf0eeda1 |
Close
Hashes for rchitect-0.3.27-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d60b2ca7fe23c0f142cc68ade64b15a42dac92d5f3c40064c12f3d260684f2a6 |
|
MD5 | 69fb9cc3c043620ac53fb726270dac01 |
|
BLAKE2b-256 | a5006b9400f09043dd0334b3dff3a626aacea8b8ef5287f13757fcf5151b1566 |
Close
Hashes for rchitect-0.3.27-cp37-cp37m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db013246f6c92673ddb834861823c65959c75568a67f3e73b05857c53a7ed2f6 |
|
MD5 | 3e3102cfb03c4f48b610e4a153ede319 |
|
BLAKE2b-256 | f81066f6e84c4e0d4a6048ed8be4d7ec8f4b9b74a815ec1587c47b0044c545e4 |
Close
Hashes for rchitect-0.3.27-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db51f0ade96dc167dfc2e35b267e74634dc27f4c13c6c770f06b87dc1dd187a1 |
|
MD5 | 1c4b0a17f49c4094078724eb6ca144e1 |
|
BLAKE2b-256 | bad140fe9da8ec651f10e35b6cb45cbc0f07803ad23ae55d2dd4ae604bdd4676 |
Close
Hashes for rchitect-0.3.27-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02ddf70e6627608d2fc8f836659d79da5809da1ab69258491854b34d5571865b |
|
MD5 | 8c93d421d34b4359ecdd5896b0cec728 |
|
BLAKE2b-256 | d73371937d1e6be9472251703efd1aa458c05483f77a8fd4981fbcffa22ff517 |
Close
Hashes for rchitect-0.3.27-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed3c49bd3ea8ea60b7689ffa83369a17c84c795ff29c2c127faa03e42801b1c0 |
|
MD5 | a0d4f3dc81b8f34c1fe24f37005b4642 |
|
BLAKE2b-256 | df02b772a61ad21f7404778fe5f7237f6819e974b58c488b361b1943ccdb8ee1 |
Close
Hashes for rchitect-0.3.27-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8873e2189740c3f306d5b079e8e8854879ad0a1cc0e119ff30fe9ea6cf9868a |
|
MD5 | 5d714ae261fa5c2a4785d807c6a19a10 |
|
BLAKE2b-256 | ba868e78b30510f80cd54e1bd2751ffac440fcf3abb09411ed27d98be9723271 |
Close
Hashes for rchitect-0.3.27-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf0498d6373de01ab01cc82f599fa9b820bdbfa70134d30345e8f4eb9ea95618 |
|
MD5 | 689a799b045b9751d84b91d1be2eeb23 |
|
BLAKE2b-256 | 4ddd2a54847bcd5106528ba2c67325d27980b19a879230b9a48e9cfd06e1520c |
Close
Hashes for rchitect-0.3.27-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6da0450f91fb5036f47d96c643dfc5972da1746e745ce2a52daa53fc0c0b89ad |
|
MD5 | 81ee8f39f75b43114b0e59099a034caf |
|
BLAKE2b-256 | c0f7e1bb0f96bd83b7a3be014ab082e26595aa1c192a33bfaf0250f66cfab339 |
Close
Hashes for rchitect-0.3.27-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e965201018be401bae224bd94a08b15b57b453b6a97adcc515e2a29f8c5e5fea |
|
MD5 | b278e08fec39cc6db8cd9e6121a78214 |
|
BLAKE2b-256 | 198bbf13423f4c8d5f7411e3183ba911a7aecf82d00f17d9c730bc7a3424f285 |
Close
Hashes for rchitect-0.3.27-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90943c2014c726122e463fdcb5df4203aa1f214f20e387876d95692d3f0c9f9a |
|
MD5 | d3bdf1cca14f3501ec93ff583420b936 |
|
BLAKE2b-256 | 2684ad207063acf23b1351ec457a41639a538e6cb2a6f5f124b059a10a0d1949 |
Close
Hashes for rchitect-0.3.27-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 502ca7c0eec34348af6575ce99ab9758a12f30bd8e9ae9d9e653746414887a27 |
|
MD5 | 3d8ffbde96c54101efd0b6a23579107f |
|
BLAKE2b-256 | 8d35e3bc886b5df3598ff05f7d57f43fbd299abbd173b8f2028e545dd231b74b |
Close
Hashes for rchitect-0.3.27-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fa0c05139802b98466ca427380d6c508b35401ac1c47987854811bd3f8d5a66 |
|
MD5 | 34c3c3e55da65b7915a9095ba4631ead |
|
BLAKE2b-256 | 15e58000f5f6b0b07da4b7993e39dedfad8738ab9ec27511a48435c01ff0a586 |
Close
Hashes for rchitect-0.3.27-cp35-cp35m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5af5f602ce573105c54f20d0e3d02e121526d3657634562b26b8ab04e871763d |
|
MD5 | af2791d57657609bd20aad594d399075 |
|
BLAKE2b-256 | a8501183cd4127bb076e11a8f9df0a9784038ea1422441b69838b1d5f338b349 |
Close
Hashes for rchitect-0.3.27-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dfa52bd9be1023f30a0eb45eee3769ab2c5f56f39525fb0ee91da8a0f99dbd3 |
|
MD5 | 9dff7e9ff50aba0bd8a4e5d640a4345a |
|
BLAKE2b-256 | 0c8956cb09b40324efe70684fc485698bfe1f5bbdf079f8d73cec60207c42dd1 |
Close
Hashes for rchitect-0.3.27-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5d0092ff476d40d6489241215c03183323b6e491eafcb3e72b418df6d5c448d |
|
MD5 | b3515ecfa09ab54589c7d32316406762 |
|
BLAKE2b-256 | eba969617210c9885ac9936b9d358cdbfbfd6a81bb5bc772fbbc3a175c37e719 |
Close
Hashes for rchitect-0.3.27-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f156e507f9a9015e45f614b9f6be2de305295eb33c72c7b4e7c2c24cc5db2f2 |
|
MD5 | 6007a373430ee281f7552c7dd833c436 |
|
BLAKE2b-256 | 2ccb8c8891fb4a375673207a7f4ea5f79b28570518219c18361a294eaf672046 |
Close
Hashes for rchitect-0.3.27-cp27-cp27m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfee2776b262ad1659ac3f955b596cc10d23f2f44329c06cc3325abeacfc6910 |
|
MD5 | 2fd8cf55c78e831840f4f5a3f1e37ce1 |
|
BLAKE2b-256 | e23be606cb1e67d64fed4895ddf6e3858f1babce5f3c42f4f2f505d2393fb5be |
Close
Hashes for rchitect-0.3.27-cp27-cp27m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15ca57ac477251a7aaa6d023e34a6e8d5f5cdd6e19d5389cf4ee432804dff2fc |
|
MD5 | 299791b52716ea5597ee6deb2eb349cb |
|
BLAKE2b-256 | f99e1c75ace697f393f5f5d1bec971af5339515ccc084ad75787acd2d5039259 |