rpy-bridge 0.3.3__tar.gz → 0.3.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rpy_bridge-0.3.3/src/rpy_bridge.egg-info → rpy_bridge-0.3.5}/PKG-INFO +4 -4
- {rpy_bridge-0.3.3 → rpy_bridge-0.3.5}/README.md +3 -3
- {rpy_bridge-0.3.3 → rpy_bridge-0.3.5}/README.rst +1 -1
- {rpy_bridge-0.3.3 → rpy_bridge-0.3.5}/pyproject.toml +1 -1
- {rpy_bridge-0.3.3 → rpy_bridge-0.3.5}/src/rpy_bridge/__init__.py +2 -0
- rpy_bridge-0.3.5/src/rpy_bridge/rpy2_utils.py +1071 -0
- {rpy_bridge-0.3.3 → rpy_bridge-0.3.5/src/rpy_bridge.egg-info}/PKG-INFO +4 -4
- rpy_bridge-0.3.5/tests/test_wrapper.py +11 -0
- rpy_bridge-0.3.3/src/rpy_bridge/rpy2_utils.py +0 -861
- rpy_bridge-0.3.3/tests/test_wrapper.py +0 -11
- {rpy_bridge-0.3.3 → rpy_bridge-0.3.5}/LICENSE +0 -0
- {rpy_bridge-0.3.3 → rpy_bridge-0.3.5}/setup.cfg +0 -0
- {rpy_bridge-0.3.3 → rpy_bridge-0.3.5}/src/rpy_bridge/py.typed +0 -0
- {rpy_bridge-0.3.3 → rpy_bridge-0.3.5}/src/rpy_bridge.egg-info/SOURCES.txt +0 -0
- {rpy_bridge-0.3.3 → rpy_bridge-0.3.5}/src/rpy_bridge.egg-info/dependency_links.txt +0 -0
- {rpy_bridge-0.3.3 → rpy_bridge-0.3.5}/src/rpy_bridge.egg-info/requires.txt +0 -0
- {rpy_bridge-0.3.3 → rpy_bridge-0.3.5}/src/rpy_bridge.egg-info/top_level.txt +0 -0
- {rpy_bridge-0.3.3 → rpy_bridge-0.3.5}/tests/test_package_call.py +0 -0
- {rpy_bridge-0.3.3 → rpy_bridge-0.3.5}/tests/test_py2r.py +0 -0
- {rpy_bridge-0.3.3 → rpy_bridge-0.3.5}/tests/test_roundtrip.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rpy-bridge
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.5
|
|
4
4
|
Summary: Python-to-R interoperability engine with environment management, type-safe conversions, data normalization, and safe R function execution.
|
|
5
5
|
Author-email: Victoria Cheung <victoriakcheung@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -150,12 +150,12 @@ uv sync
|
|
|
150
150
|
from pathlib import Path
|
|
151
151
|
from rpy_bridge import RFunctionCaller
|
|
152
152
|
|
|
153
|
-
|
|
153
|
+
rfc = RFunctionCaller(
|
|
154
154
|
path_to_renv=Path("/path/to/project"),
|
|
155
|
-
|
|
155
|
+
script=Path("/path/to/script.R"),
|
|
156
156
|
)
|
|
157
157
|
|
|
158
|
-
summary_df =
|
|
158
|
+
summary_df = rfc.call("summarize_cohort", cohort_df)
|
|
159
159
|
```
|
|
160
160
|
|
|
161
161
|
---
|
|
@@ -91,12 +91,12 @@ uv sync
|
|
|
91
91
|
from pathlib import Path
|
|
92
92
|
from rpy_bridge import RFunctionCaller
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
rfc = RFunctionCaller(
|
|
95
95
|
path_to_renv=Path("/path/to/project"),
|
|
96
|
-
|
|
96
|
+
script=Path("/path/to/script.R"),
|
|
97
97
|
)
|
|
98
98
|
|
|
99
|
-
summary_df =
|
|
99
|
+
summary_df = rfc.call("summarize_cohort", cohort_df)
|
|
100
100
|
```
|
|
101
101
|
|
|
102
102
|
---
|
|
@@ -9,5 +9,5 @@ Usage example (local script):
|
|
|
9
9
|
|
|
10
10
|
# Use a local script path (clone or download remote scripts yourself)
|
|
11
11
|
script_path = "/path/to/cloned/repo/scripts/my_script.R"
|
|
12
|
-
caller = RFunctionCaller(path_to_renv=None,
|
|
12
|
+
caller = RFunctionCaller(path_to_renv=None, script=script_path)
|
|
13
13
|
result = caller.call("my_func")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "rpy-bridge"
|
|
3
|
-
version = "0.3.
|
|
3
|
+
version = "0.3.5"
|
|
4
4
|
description = "Python-to-R interoperability engine with environment management, type-safe conversions, data normalization, and safe R function execution."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = { file = "LICENSE" }
|
|
@@ -6,6 +6,7 @@ continue importing directly from ``rpy_bridge``.
|
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
8
|
from .rpy2_utils import (
|
|
9
|
+
NamespaceWrapper,
|
|
9
10
|
RFunctionCaller,
|
|
10
11
|
activate_renv,
|
|
11
12
|
align_numeric_dtypes,
|
|
@@ -23,6 +24,7 @@ from .rpy2_utils import (
|
|
|
23
24
|
__all__ = [
|
|
24
25
|
"activate_renv",
|
|
25
26
|
"RFunctionCaller",
|
|
27
|
+
"NamespaceWrapper",
|
|
26
28
|
"r_namedlist_to_dict",
|
|
27
29
|
"clean_r_dataframe",
|
|
28
30
|
"fix_string_nans",
|