ImportError Traceback (most recent call last)
[~\AppData\Local\Temp\ipykernel_20424\2064517199.py](https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/22409/Desktop/causal%20discovery/~/AppData/Local/Temp/ipykernel_20424/2064517199.py) in
----> 1 model=cdt.causality.graph.GES()
[d:\Anaconda\envs\py37\lib\site-packages\cdt\causality\graph\GES.py](file:///D:/Anaconda/envs/py37/lib/site-packages/cdt/causality/graph/GES.py) in __init__(self, score, verbose)
108 """Init the model and its available arguments."""
109 if not RPackages.pcalg:
--> 110 raise ImportError("R Package pcalg is not available.")
111
112 super(GES, self).__init__()
ImportError: R Package pcalg is not available.
I have installed pcalg and kpcalg in Rstudio, and both can be used in R. My environment is Win10. I think the reason is the configuration of cdt fail to import the package, but I don't know how to make that right.
I have installed pcalg and kpcalg in Rstudio, and both can be used in R. My environment is Win10. I think the reason is the configuration of cdt fail to import the package, but I don't know how to make that right.