From 96deb2229841b7f9a66f7d8ca35552e8fc2842c0 Mon Sep 17 00:00:00 2001 From: Ricky Date: Sun, 18 Jan 2026 21:16:34 -0800 Subject: [PATCH] Fix r_runner signature to match python_runner The r_runner function had an outdated signature (script_name, target_dir, src_dir) that didn't match how it's called in standard_task.py, which passes (script_name, task). This caused a TypeError when running R tasks. Updated to match python_runner's signature: (script_name: str, task: BaseTask) --- pdpp/languages/runners.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdpp/languages/runners.py b/pdpp/languages/runners.py index 184538a..05b073a 100644 --- a/pdpp/languages/runners.py +++ b/pdpp/languages/runners.py @@ -17,8 +17,8 @@ def python_runner(script_name: str, task: BaseTask): ) -def r_runner(script_name, target_dir, src_dir): - run(["Rscript", script_name], check=True, cwd=join(target_dir, src_dir)) +def r_runner(script_name: str, task: BaseTask): + run(["Rscript", script_name], check=True, cwd=join(task.target_dir, task.SRC_DIR)) # TODO: Fix the project runner and bring it in line with the other runners