Closed NeilChangYanpeng closed 3 years ago
Hello, Have you installed R on your device ? Otherwise, using the docker images would be a good alternative ! Best, Diviyan
Hello, Have you installed R on your device ? Otherwise, using the docker images would be a good alternative ! Best, Diviyan
Thank you for your help, I installed R 4.0.3, but there are new errors when installing packages, some of the R packages are not available, you can see in the screenshot below:
Since I have never used docker,could you please share with me more details to use docker images to solve this problem, or share with me a tutorial website.Thank you so much!
Ok then R is installed, no problem on that part.
D2C is not used in the code, so it shouldn't pose any kind of problem for now.
The issue might arise from the Rpath given to python. I think you need to specify cdt.SETTINGS.rpath
to your path installation
example
import cdt
cdt.SETTINGS.rpath = 'C:/ProgramFiles/R/R' # path to your r executable
What path did you provide for cdt.SETTINGS.rpath ?
I think you need to add 'Rscript' : That makes:
cdt.SETTINGS.rpath = 'D:\Program Files\R\R-4.0.3\bin\Rscript'
The discussion at #70 might be useful for you
Best, Diviyan
Thank you sooooooo much, @Diviyan-Kalainathan .
It works by configuring rpath.
Great! I'll close this issue
Hello, Have you installed R on your device ? Otherwise, using the docker images would be a good alternative ! Best, Diviyan
FileNotFoundError Traceback (most recent call last)
Hi, I had the same problem. Adding this: cdt.SETTINGS.rpath = 'C:/Program Files/R/R-4.2.2' (without the binary) was a kind of half solution. Now, I face another problem.
Hi, it is my first time to use cdt, after installed by:
pip install cdt
I ran:
from cdt.causality.graph import GES
obj=GES()
then I got this error:![图片](https://user-images.githubusercontent.com/41663460/97840576-3d071c80-1d1f-11eb-9be7-1811ab554745.png)
I'm working with cdt 0.5.21 , python 3.6.12 and torch 1.4.0, no GPU. Thank you for your help!