-
Notifications
You must be signed in to change notification settings - Fork 240
Description
Hello,
I am trying to run the code for Causal Discovery using RL and i am getting below error with rpy2, though i have installed dependencies using setup_CAM.py
Selection: 1
R packages CAM has been successfully installed.
importing R packages CAM and mboost
Traceback (most recent call last):
File "/Users/pardazbanumohammad/trustworthyAI/research/Causal Discovery with RL/src/main.py", line 22, in
from helpers.cam_with_pruning_cam import pruning_cam
File "/Users/pardazbanumohammad/trustworthyAI/research/Causal Discovery with RL/src/helpers/cam_with_pruning_cam.py", line 32, in
cam = rpackages.importr('CAM')
File "/opt/anaconda3/envs/causalGraph/lib/python3.10/site-packages/rpy2/robjects/packages.py", line 472, in importr
raise PackageNotInstalledError(
rpy2.robjects.packages.PackageNotInstalledError: The R package "CAM" is not installed.
R[write to console]: Warning message:
R[write to console]: package ‘CAM’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages