1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-12 03:41:59 +02:00

(v2.1.1.9127) unit tests

This commit is contained in:
2025-01-27 10:46:43 +01:00
parent 66833b4f5a
commit 7accf6ff13
19 changed files with 217 additions and 226 deletions

View File

@ -63,6 +63,9 @@ r_lib_path = os.path.join(venv_path, "R_libs")
os.makedirs(r_lib_path, exist_ok=True)
# Set the R library path in .libPaths
base = importr('base')
# Turn off warnings
base.options(warn = -1)
base._libPaths(r_lib_path)
r_amr_lib_path = base._libPaths()[0]
@ -90,6 +93,9 @@ if r_amr_version != python_amr_version:
except Exception as e:
print(f"{BLUE}AMR:{RESET} Could not update: {e}{RESET}", flush=True)
# Restore warnings to default
base.options(warn = 0)
print(f"{BLUE}AMR:{RESET} Setting up R environment and AMR datasets...", flush=True)
# Activate the automatic conversion between R and pandas DataFrames