1
0
mirror of https://github.com/msberends/AMR.git synced 2026-03-29 22:55:56 +02:00
Files
AMR/data-raw
Matthijs Berends 6a7e8ce036 fix: convert Python lists to R vectors in wrapper to prevent R list coercion errors
Fixes #267. Python lists passed to R functions via rpy2 are received as
R lists, not R character/numeric vectors. This causes is.mic(), is.sir(),
is.disk() etc. to return length > 1 logicals, which break R's && operator.

Added convert_to_r() helper that maps Python list/tuple to the appropriate
typed R vector (StrVector, IntVector, FloatVector) based on element types.
The r_to_python decorator now applies this to all args and kwargs before
calling the R function.
2026-03-29 14:34:58 +02:00
..
2024-12-06 18:01:54 +01:00
2024-02-25 14:20:43 +01:00
2024-04-24 09:58:24 +02:00
2025-04-08 15:54:30 +01:00
2025-04-08 15:54:30 +01:00
2025-04-08 15:54:30 +01:00
2023-10-20 14:51:48 +02:00
2025-04-20 12:55:31 +02:00
2023-01-23 15:01:21 +01:00
2025-04-20 12:55:31 +02:00
2025-03-28 11:17:49 +01:00
2024-02-25 14:20:43 +01:00
2024-09-30 18:46:55 +02:00
2023-10-20 14:51:48 +02:00
2025-04-12 11:46:42 +02:00
2022-08-19 12:33:14 +02:00
2025-04-20 12:55:31 +02:00
2025-04-12 11:46:42 +02:00
2025-04-12 11:46:42 +02:00
2023-02-12 17:10:48 +01:00
2022-08-28 10:31:50 +02:00
2021-10-05 14:00:35 +02:00
2025-04-29 16:15:18 +02:00