huawei-noah / trustworthyAI

Trustworthy AI related projects
Apache License 2.0
957 stars 215 forks source link

Error: package ‘CAM’ was installed before R 4.0.0: please re-install it #154

Open NOrangeeroli opened 1 month ago

NOrangeeroli commented 1 month ago

Hi,

Hope this message finds you well. I installed CAM with setup_CAM.py with no error, but when running

import rpy2.robjects.packages as rpackages
cam = rpackages.importr('CAM')

I got the error in title.

Would be nice to know which R version did you use ?

Best

shaido987 commented 1 month ago

Hi @NOrangeeroli ,

I don't know what version of R was used for the work but looking at the initial publication date (Dec 2019) it's most likely one of the newer 3.* versions.

However, looking at this StackOverflow question it should be enough to reinstall the package after the R version update.